<html>
<head>
<script language="javascript">
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不到源代碼";
document.body.innerHTML=Source;
}
</script>
</head>
<body onload=clear()>
<!--
這招算是目前網(wǎng)上公布的防止查看源代碼的方法中最好的了,當(dāng)然了,要看還是辦法的,比如在地址欄中輸入<br>
javascript:alert(document.documentElement.outerHTML);
-->
</body>
</html>
新聞熱點(diǎn)
疑難解答
圖片精選