当前位置:首页 > 防止查看源代码的方法 >
防止查看源代码的方法
2013-10-10 20:39:19 来源:邯郸网络公司 浏览次数:2680次
把以下方法放在BODY内用ONLOAD来加载:
<script language="javascript">
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不见源代码了";
document.body.innerHTML=Source;
}
</script>