10. 網頁將不能被另存為
<noscript><iframe src=*.html></iframe></noscript>
11. <input type=button value=查看網頁源代碼
onclick="window.location = `view-source:`+ http://www.mycodes.net/`";>
12.刪除時確認
<a href=`JavaScript:if(confirm("確實要刪除嗎?"location="boos.asp?&areyou=刪除&page=1"`>刪除</a>
13. 取得控件的絕對位置
//JavaScript
<script language="JavaScript">
function getIE(E){
var t=e.offsetTop;
var l=e.offsetLeft;
while(e=e.offsetParent){
t+=e.offsetTop;
l+=e.offsetLeft;
新聞熱點
疑難解答