我在网页之中用window。open打开一个新的网页但是被系统或上网助手禁至了,打不开,怎么解决阿 ???

解决方案 »

  1.   

    <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>
    这个的好处就是不用改变已有的代码。只要想办法把这个代码放进原来的网页的前面把window.open替换掉就可以了。