<一>只需要在你的页面中加入如下的脚本即可..
以下为引用的内容:
function window.onbeforeunload()
{
event.returnValue = "the page will be closed, comfirm to close?";
}
<二>目的
伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-01/1200740618.html
关闭按钮点击事件的捕捉
'http://www.etoow.com/html/2008-01/1200740618.html