<script>
function window.onbeforeunload(){ with(event)if(clientX>document.body.clientWidth &&clientY<0||altKey) alert("Close window!") else alert("Refresh window!") } </script> |
JAVASCRIPT捕获IE的刷新按钮和关闭按钮
最新推荐文章于 2012-04-07 11:20:54 发布
<script>
function window.onbeforeunload(){ with(event)if(clientX>document.body.clientWidth &&clientY<0||altKey) alert("Close window!") else alert("Refresh window!") } </script> |