顺便说明下,我是在IE7下出现这样的问题。但是在别的电脑上一样的程序,ie6\ie7却都没问题.不知道是什么原因哦.

解决方案 »

  1.   

    IE 6 sp2 调试通过1.html
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>默认标题 by songpeng</title>
    <script language="JavaScript" type="text/javascript">
    function btnClick()
    {
    window.showModalDialog("2.html");
    }
    </script>
    </head><body>
    <form>
    1.html
    <input type = "button" onclick = "javascript:btnClick();" value = "按钮" />
    </form>
    </body>
    </html>
    2.html
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>默认标题 by songpeng</title>
    <script language="JavaScript" type="text/javascript">
    function btnClick()
    {
    window.open("http://www.baidu.com");
    }
    </script>
    </head><body>
    <form>
    2.html
    <input type = "button" onclick = "javascript:btnClick();" value = "打开百度" />
    </form>
    </body>
    </html>
      

  2.   

    重新注册 C:\WINDOWS\system32\jscript.dll对IE7不熟
      

  3.   

    报JS错误:No   such   interface   supported. 
      

  4.   

    报JS错误:没有如此的接口支援。
    查下你的ie的设置配置情况!