How do you actually close a window by resizing it?
I meant after resizing it...
Why do you want to "capture" the close event? What exactly are you
trying to do? Can you provide explanations, description regarding your
webpage goals, requirements, purposes? What close event do you really
want to "capture": the webpage being unloaded or the window being closed?
In which way dealing with the closing of the window or unloading of a
webpage is actually contributing to the content for the users or
contributing to the experience of the users?
Problem is that whenver te user changes the data on the screen and
leaves it without saving the data, I prompt user to save the data by
calling a function on the body onunload event.
So in the body unload event i call a function which does the following
thing:-
*************** *************** *************** *******
if (event.clientY < 0 && event.clientX 500)
{
//don't ask the user to save the data
}
*************** *************** *************** ******
Event here refers to the click and
event.clientY < 0 ensures that the button wasn't clicked in the
body and event.clientX >500 ensures that the user is not prompted to
save
when the refresh button is clicked, bcoz the page would unload in
that
event also.
I know that event.clientX >500 won't work when the screen size or the
browser's size is small...that is one of the problems i m facing
besides the user closing the window using Alt+F4 or by right clicking
at the bottom and then closing it..