发表于: sitebuild | 作者: | 日期: 2008/1/08 12:01

1、

window.close();

弹出确认窗口。

2、

window.opener = null;
window.close();

不会弹出确认窗口。

记得有一次去华为面试,就是因为不知道如何在不弹出确认窗口的情况下关闭当前window而被鄙视,:-(

: https://blog.darkmi.com/2008/01/08/101.html

本文相关评论 - 1条评论都没有呢
Post a comment now » 本文目前不可评论

No comments yet.

Sorry, the comment form is closed at this time.