<script type="text/javascript">
<!--
var whatsNew = open('','_blank','top=50,left=50,width=200,height=300,' +
                'menubar=no,toolbar=no,directories=no,location=no,' +
                'status=no,resizable=no,scrollbars=yes');
whatsNew.document.write('<center><b>更新通知</b></center>');
whatsNew.document.write('<p>最后更新日期:00.08.01');
whatsNew.document.write('<p>00.08.01:增加了“我的最爱”栏目。');
whatsNew.document.write('<p align="right">' +
                '<a href="javascript:self.close()">关闭窗口</a>');
whatsNew.document.close();
-->
</script>

解决方案 »

  1.   

    不能这样多次使用write()方法输出,可以先把要输出的html代码拼接为一个字符串,然后调用document.write()一次性输出。自己google一下文档流的概念。
      

  2.   

    不知道你用的是IE几的,我在搜狗上也是可以的,IE7上就不行,报错
      

  3.   

    如果没有拦截设置,是可以的
    IE8测试是可以的
    <script type="text/javascript">
    <!--
    var whatsNew = open('','_blank','top=50,left=50,width=200,height=300,' +
      'menubar=no,toolbar=no,directories=no,location=no,' +
      'status=no,resizable=no,scrollbars=yes');
    whatsNew.document.write('<center><b>更新通知</b></center>');
    whatsNew.document.write('<p>最后更新日期:00.08.01');
    whatsNew.document.write('<p>00.08.01:增加了“我的最爱”栏目。');
    whatsNew.document.write('<p align="right">' +
      '<a href="javascript:self.close()">关闭窗口</a>');
    whatsNew.document.close();
    //-->
    </script>
      

  4.   

    我用的IE9
    那就奇怪了...搜狗不是IE内核的吗
      

  5.   

    哦,我看走眼了,原来是向新建的文档流中写入数据,这个没问题。在IE8中使用IE7模式测试没问题。
      

  6.   

    搜狗是双核浏览器,一个是以IE为内核的兼容模式,另外一个是以Chrome为内核的高速模式
      

  7.   

    是因为弹出窗口被阻止了。建议加一个if 判断一下,这样以免脚本错误引起后续的其它代码也失效     if (whatsNew) {
             whatsNew.document.write('<center><b>更新通知</b></center>');
    // ....更多
    }
    else{
      alert("窗口被阻止了");
    }