点击IE窗口上方的“X关闭符号”,弹出提示窗口!
csdn论坛有一条帖子讨论:
如何点击IE窗口上方的“X关闭符号”,弹出提示窗口呢?
其中叫huangsuipeng(hsp-ec.net)的网友提供了实现代码:
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script language="javascript">
function test()
{
return "";
}
</script>
</HEAD>
<BODY onbeforeunload="return test();">
</BODY>
</HTML>