Quiting the page before a form submission
<p>In my application I am showing the warning message when the user want to leave the page before submitting the form. I am using  window.onbeforeunload() in the script. My application has a Master page.</p>

<p>I have four different views for a single form. I am inserting record in first view itself.
When user quits the page I want to make some DB change(deletion of record). That's why I want to call a server side function from the script. </p>

<p>How to do it  ? Can anybody suggest something ?</p>

<p>Thanks</p>
