zoukankan      html  css  js  c++  java
  • 让别人查看不了你的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)
  • 相关阅读:
    hdoj:2075
    hdoj:2072
    hdoj:2071
    hdoj:2070
    hdoj:2069
    test001
    hdoj:2067
    hdoj:2061
    hdoj:2058
    hdoj:2057
  • 原文地址:https://www.cnblogs.com/Apollo/p/398992.html
Copyright © 2011-2022 走看看