在网页中使用了 window.close();关闭页面时,IE8会提示是否要关闭,
1 | <script language="javascript" type="text/javascript"> |
2 | functioncloseme() |
3 | { |
4 | window.open('','_parent',''); |
5 | window.close(); |
6 | } |
7 | </script> |
本文介绍了一种在Internet Explorer 8浏览器中使用JavaScript关闭当前窗口的方法,并提供了一个具体的示例代码片段。需要注意的是,在IE8中使用window.close()可能会弹出确认对话框。

被折叠的 条评论
为什么被折叠?



