如何避免不小心关掉web浏览器窗口
摘要:
<script language="javascript"> g_blnCheckUnload = true; function RunOnBeforeUnload() { if (g_blnCheckUnload) {window.event.returnValue = 'You will lose any unsaved content'; } }</script><body onbeforeunload="RunOnBeforeUnload()"></body>这样每次关闭浏览器窗口或 阅读全文
posted @ 2007-09-06 18:32 goodvify 阅读(201) 评论(0) 推荐(0) 编辑