关闭页面时弹出窗口 文章来源:岚山夜话 HTTP://WWW.33D9.COM <HEAD> <SCRIPT LANGUAGE='JavaScript'> <!-- Begin function leave() { var popUpSizeX=3; var popUpSizeY=3;var popUpLocationX=300; var popUpLocationY=260;// URL of the popUp var popUpURL='/default.asp';// ** do not edit below *** splashWin = window.open('','x','fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1'); splashWin.blur(); // Hide while updating window.focus(); splashWin.resizeTo(popUpSizeX,popUpSizeY); splashWin.moveTo(popUpLocationX,popUpLocationY); splashWin.location=popUpURL; } // END --> </SCRIPT> %> </head> <body onUnload="leave()">
<script> function yourfunction(){ alert('close!'); } </script> <body onunload="yourfunction();">
文章来源:岚山夜话
HTTP://WWW.33D9.COM
<HEAD>
<SCRIPT LANGUAGE='JavaScript'>
<!-- Begin
function leave() {
var popUpSizeX=3;
var popUpSizeY=3;var popUpLocationX=300;
var popUpLocationY=260;// URL of the popUp
var popUpURL='/default.asp';// ** do not edit below ***
splashWin = window.open('','x','fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
splashWin.blur(); // Hide while updating
window.focus();
splashWin.resizeTo(popUpSizeX,popUpSizeY);
splashWin.moveTo(popUpLocationX,popUpLocationY);
splashWin.location=popUpURL;
}
// END -->
</SCRIPT>
%>
</head>
<body onUnload="leave()">
function yourfunction(){
alert('close!');
}
</script>
<body onunload="yourfunction();">