日期:2014-05-16  浏览次数:20355 次

ie8 window.open报未指明的错误
JScript code
<script type="text/javascript"><!--
window.open('http://192.168.0.122:8800/np_file/files/release/content/201108/131276835242120110808095245.html','aha','width=150,height=120,resizable=yes,scrollbars=yes,menubar=yes');
//-->
</script>


IE6/FF下执行没有问题,IE8下执行报错【未指明的错误】,窗口也未弹出

尝试
JScript code
window.open('http://192.168.0.122:8800/np_file/files/release/content/201108/131276835242120110808095245.html');


ie8仍然不行,哪位大虾帮忙看下

------解决方案--------------------
楼主,我这边用IE8测试没有问题啊
JScript code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  <title>test11</title>

  <script type="text/javascript" >
    function aa()
    {
        window.open('http://192.168.0.122:8800/np_file/files/release/content/201108/131276835242120110808095245.html','aha','width=150,height=120,resizable=yes,scrollbars=yes,menubar=yes');
    }
  </script>

  </head>
  <body>
      <form id="form1" runat="server">
      <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick=aa(); />
      </form>
  </body>
</html>

------解决方案--------------------
改改浏览器设置试试