<HTML>
<BODY onLoad="body_onLoad();">
<SCRIPT LANGUAGE="JSCript">
function body_onLoad()
{
var sSearch;
var aPairs;
var i;
sSearch = (document.location.search.length > 1) ? document.location.search.substring(1) : "";
if (sSearch != "")
{
aPairs = sSearch.split("&");
for (i = 0; i < aPairs.length; i++)
{
alert("Paramter " + i + ": Name=" + aPairs[i].split("=")[0] + "
Value=" + aPairs[i].split("=")[1]);
}
}
}
</SCRIPT>
<P>Hello, world.</P>
</BODY>
</HTML>
<BODY οnunlοad="body_onUnload()">
<script>
function body_onUnload()
{
if (window.event.clientX < 0)
{
alert("浏览器关闭");
}
else
{
alert("刷新或者跳转到其他页");
}
}
</script>
</BODY>
<BODY onLoad="body_onLoad();">
<SCRIPT LANGUAGE="JSCript">
function body_onLoad()
{
var sSearch;
var aPairs;
var i;
sSearch = (document.location.search.length > 1) ? document.location.search.substring(1) : "";
if (sSearch != "")
{
aPairs = sSearch.split("&");
for (i = 0; i < aPairs.length; i++)
{
alert("Paramter " + i + ": Name=" + aPairs[i].split("=")[0] + "
Value=" + aPairs[i].split("=")[1]);
}
}
}
</SCRIPT>
<P>Hello, world.</P>
</BODY>
</HTML>
<BODY οnunlοad="body_onUnload()">
<script>
function body_onUnload()
{
if (window.event.clientX < 0)
{
alert("浏览器关闭");
}
else
{
alert("刷新或者跳转到其他页");
}
}
</script>
</BODY>