当鼠标点击页面上时,触发事件弹出一个新窗口,弹出后我不能让用户再次点击父窗口,在IE6 iE7  IE8 下面怎么写啊,望高手帮忙。

解决方案 »

  1.   

    var de = document.documentElement;
    de.onclick = function()
    {
        window.open('http://www.sina.com.cn');
    de.onclick = null;
    }
      

  2.   

    var url = "自定义链接url";
    var height = 窗口高度;
    var width = 窗口宽度
    showModalDialog(url,param,"dialogHeight:"+height+"px;dialogWidth:"+width+"px; center:yes;help:no;resizable:no;status:no")
      

  3.   

    javascript:可以放一个遮罩层,指定一下你的弹出窗口和遮罩层的z-index即可
    具体baidu
      

  4.   

    showModalDialog弹出模式窗体、只要弹出的窗体木有关闭、不能对父窗体有任何操作。
      

  5.   


    <html>
    <body>
    <script>
    var url = 'http://www.sina.com.cn';
    var height = 500;
    var width = 400;
    showModalDialog(url,"","dialogHeight:"+height+"px;dialogWidth:"+width+"px; center:yes;help:no;resizable:no;status:no")
    </script>
    </body>
    </html>
    2L写的那个IE测试有效啊
      

  6.   


    <html>
    <body>
    <script>
    var url = 'http://www.sina.com.cn';
    var height = 500;
    var width = 400;
    showModalDialog(url,"","dialogHeight:"+height+"px;dialogWidth:"+width+"px; center:yes;help:no;resizable:no;status:no")
    </script>
    </body>
    </html>
      

  7.   

    这年头用弹窗口的少了点。大多都是弹出一个div或者调用第三方的组件弹出东西。
    如果说你硬用弹出窗口,那么做管理的时会,用parent.这样来获取父窗口信息。