以前见过这样的js代码,当时用的是ie7,我通过百度搜索某关键词,点击进该网站之后,百度这个页面被它的弹窗侵占,点击后退无效。只恨当时没有保存下来,现在浏览N个诱惑网站都找不回这样的js了……现在求高人奉献类似这样的一段js……如果IE678 火狐谷歌浏览器通用,那就更无敌了 

解决方案 »

  1.   

    <body onload="window.close()">
    </body><a href="javascript:window.close()">关闭窗口</a>
      

  2.   

    LZ想做个很给力的网站是吧
    location.replace('女优.黄片');
      

  3.   

    没想到可行的方法。我只是想说用location.replace()替换当前页面的URL后,是不会有后退按钮可点的至于“女优。黄片”。
    那只是个笑话。
      

  4.   


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    </head>
    <body>
    <a href='http://www.baidu.com' onclick='location.replace("http://www.sina.com.cn");return false;'>没有后退按钮</a>
    </body>
    </html>
      

  5.   

    A页面:
    <a href="http://www.vaadv.com/" target="_blank">点击我</a>B页面<script>
    window.opener.location.replace("http://www.vaadv.com/");
    </script>