w3UserExit

w3UserExit is used by a Web page to indicate that the page is being unloaded so the connection can be closed by the application. When a form is submitted with w3UserExit set to non-null, the call to w3Input, which is waiting for a response from the browser, exits with a completion status of w3_UserExit.

The following incomplete code and HTML segment works with Internet Explorer 4.0 and Javascript.

HTML

<body onUnload="chkExit();">

Javascript

function chkExit(){

var winToClose = null;  

winToClose=window.open('', '', 'width=250,height=150');

if ( winToClose != null) {

window.location="/cgi-bin/fccgi.exe?w3cookie=0012136246399 9&w3UserExit=1"  

}  

}

Note:

 

The above code is an example and is not functional.