如何使用CSS或者JS禁止弹出新页面

解决方案 »

  1.   

    <a href="" target="_blank">
    这样用的话是弹出新的页面.不指定TARGET就是在当前页面.具体的TARGET的取值,请参考下面的内容.1._blank       <a href="document.html" target="_blank">my document</a>         浏览器会另开一个新窗口显示document.html文档   
    2._parent      <a href="document.html" target="_parent">my document</a>       指向父frameset文档   
    3._self           <a href="document.html" target="_self">my document</a>            把文档调入当前页框  
    4._top           <a href="document.html" target="_top">my document</a>             去掉所有页框并用document.html取代frameset文档
        
    小技巧1:使别人的页框不能引用你的网页        在文件头加:<base target="_top">    
    小技巧2:在当前页打开连接或做刷新,提交到当前页在文件头加:<base target="_self">  
      

  2.   

    <a href="" target="_blank">
      

  3.   

    window.opener.location.href='exit.jsp';
      

  4.   

    如果这个open是window的方法
    function open(){}
    你重新构建一个加入网页就可以了,可没有我写的这么简单哦!要用原型的。
    function open(){}因为弹出新画面不但链接可以,图片可以,就连表格也可以,估计只有方法覆盖最后加载了!