In the following scenarios overlay should come in the main page and parallely one ajax call should be happened and insert the data in DB.
our requirement is client wants to know howmany users leaving the main page without entering
main data.at that time this overlay should come and in the background ajax DB call should be
1)when user leaves the page.(e.g. type other address in the address bar).bascially user shy away from the browser.
2)clicks browser close button.
I have some clarifications in jquery Is there any events are there in jquery if user do
above screnarios and how to make AJAX calls.