i want to catch event on client side whentever user close browser. What will be the java script for that<BR><BR>Any help will be appreciated<BR>
<BODY onUnLoad=" some function here ">
What will be the syntax for that.<BR>I want to store true value is variable x when ever browser close.<BR>I dont know the jscript syntax<BR>kindly guide me
You want to store that in client side script?<BR><BR>What do you think will happen to that variable when
[hit post too soon]<BR><BR>...the page is closed?
yes i will store on client side.<BR>Then i will pass that variable to server throught hidden field of form.
check www.irt.org<BR><BR>loads of examples
1) Browser starts to close<BR>2) You set a client-side variable<BR>3) Browser closes (client-side variable lost)<BR><BR>When EXACTLY are you going to use this in a form?<BR><BR>Craig.
Well he could pass a var to a pop-up window, submit a form in that window, and close the pop-up again all from a function in the onUnLoad event.<BR><BR>Or am I wrong? Not completely my area...
form is one same page. when user close window. script first store value in variable then submit the form