小二哥's blog

----zhangzs8896(小二)

导航

如何点击IE窗口上方的“X关闭符号”,弹出提示窗口呢?
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script language="javascript">
function test()
{
 return "";
}
</script>
</HEAD>

<BODY onbeforeunload="return test();">

</BODY>
</HTML>