让别人查看不了你的HTML源代码,使用JS方式
HTML代码:
<html><head><script>
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不到源代码";
document.body.innerHTML=Source;
}</script></head>
<body onload=clear()>
<marquee>看得到源代码吗?
</marquee>
</body></html>
破解方法如下:javascript:alert(document.getElementsByTagName("HTML")[0].outerHTML)
<html><head><script>
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不到源代码";
document.body.innerHTML=Source;
}</script></head>
<body onload=clear()>
<marquee>看得到源代码吗?
</marquee>
</body></html>
破解方法如下:javascript:alert(document.getElementsByTagName("HTML")[0].outerHTML)
作者:Apollo
出处:http://apollo.cnblogs.com/
如果您觉得本文对您的学习有所帮助,可通过“微信”或“支付宝”打赏博主,或者点击页面右下角【好文要顶】支持博主。