各位大侠:
   用window.open()打开的窗体可能被阻止,有什么办法用其它方法打开一个窗体,不被阻止?

解决方案 »

  1.   

    可以换用form的get方式请求页面
    <form target="_blank" action="要window.open的页面">
        <input type="button">
    </form>或是使用模态窗口,但使用模态窗口,父页面将在子页页关闭之前一直不可用.
      

  2.   

    使用模态窗口,否则象XP系统SP2的补丁就把你的OPEN()给拦截了~~~
      

  3.   

    DHTML 怎样防止IE工具对window.open的拦截 
    http://blog.joycode.com/lostinet/archive/2004/07/12/27195.aspx
      

  4.   

    参考
    http://blog.csdn.net/sunnystar365/archive/2005/09/15/481153.aspx
      

  5.   

    用div+iframe实现了.来操控div的display属性.
      

  6.   

    怎么用啊?我对a b c参数不太懂。 
    test.htm: 
    <script> 
    window._open=window.open; 
    window.open=window_new_open; 
    function window_new_open( a,b,c ) 

    var win; 
    if( c ) 
    win=window._open( a,b,c ); 
    else if( b ) 
    win=window._open( a,b ); 
    else 
    win=window._open( a ); 
    if( win!=null&&!win.closed ) 
    return win; var option='status:0;help:0;dialogleft:10000px;dialogtop:10000px;dialogheight:0px;dialogwidth:0px'; win=showModalDialog( 'open.htm',[a,b,c],option ); return win; 

    </script> 
    <script> var win=window.open( 'http://www.lostinet.com/' ); win.close( ); </script> 
    <body onload="window_new_open(a,b,c)"> 
    </body> open.htm: 
    <script> 
    function window.onload( ) 

    var args=window.dialogArguments; 
    var a=args[0]; 
    var b=args[1]; 
    var c=args[2] 
    var win; 
    if( c ) 
    win=window.open( a,b,c ); 
    else if( b ) 
    win=window.open( a,b ); 
    else 
    win=window.open( a ); 
    window.returnValue=win; 
    window.close( ); 

    </script>