Posted by Jukka K. Korpela on 04/02/07 10:57
Scripsit jimmy:
> I want to capture the event when the browser's close button is clicked
> in a jsp.
"In a jsp"?
What do you _really_ want to do? Have you considered the fact that a browser
can be closed in different ways, which need to involve any "close button".
As usual, a URL would illustrate the real problem, but ignore this if you
don't really want to get help
> The problem arises whenever i try to close the window by resizing it
> or by right clicking at the bottom of the page and then closing it.
So you _do_ know that capturing the close button event isn't enough. Why did
you ask about _it_, then?
> Can anybody tell how to capture the window.close() event??
You might find better help with that in comp.lang.javascript. But are you
sure _that_ is your _real_ problem?
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
[Back to original message]
|