11月 112009
 


Firefox 默认不允许使用self.close() 来关闭非脚本打开的窗口,提示为:
警告: 不允许脚本关闭非脚本打开的窗口。

所谓脚本打开的窗口,如: window.open(‘about:blank’);

解决办法: window.opener=null;window.close();

 Posted by at 上午 4:42

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据