Posted in Javascript onJanuary 31, 2010
<script language="javaScript"> function closeWindow() { window.opener = null; window.open(' ', '_self', ' '); window.close(); } </script> <input type='button' value='关闭窗口' onClick="closeWindow()">
或
<input type="button" value="关闭窗口" onClick="window.opener = null; window.open(' ', '_self', ' ');window.close()">
对于关闭框架窗口
<script language="javaScript"> function closeWindow() { window.opener = null; window.open('', '_top', ''); window.parent.close(); } </script>
javaScript 关闭浏览器 (不弹出提示框)
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@