<script language="javascript">
function window.onbeforeunload() {
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
}else {
alert("你在刷新")
}
}
</script>
function window.onbeforeunload() {
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
}else {
alert("你在刷新")
}
}
</script>
function window.onbeforeunload() {
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
alert(window.event.returnValue="你调用了script,但并没有刷新,而是关闭浏览器!");
}else {
alert("你在刷新")
}
}
</script>