日期:2014-05-17  浏览次数:20403 次

IE6中弹出层报“Internet Explorer cannot open the Internet site “。如何处理?
.net开发,在IE8中没有问题,弹出层的JS写在模板页中,每个页面都有用到。
在网上查到这个错误一般是因为页面没有加载完成就调用了一个脚本程序。
那我现在要怎么处理呢。

------解决方案--------------------
JScript code

function OpenWin() {
            if (document.readyState == "complete") {
                window.open(...);
                return false;
            }
            else
                setTimeout(OpenWin(),100);
        }