PDA

View Full Version : how can capture onClose() Event in IE


mmnanuruddha
10-10-2007, 02:09 AM
Hi,
You have experince with IE 7. That is a feature ehrn we are going to close the browser using (X) or ALT + F4,
if we have open several tabs it will pop up dialog box.
Saying that do you want to close......

So any one knows how they have capture this action in web.:confused:

There should be a action for this, isn't that :confused:

pls explain what happens there...

diades
10-10-2007, 05:57 AM
Hi

Not neccessarily, this is an action of the browser application that is used to display the user's selection of website(s). As such it would not usually be available to the web developer for security reasons. That is, it is not your browser so you have no right to mess with the control functions without the user's permission.
That said, you could place a script to read the onclose event for the psge and do something there. It would not (or should not) override the master browser control however.

<h1>
10-10-2007, 06:54 AM
you can try onunload
(http://www.w3schools.com/jsref/jsref_onunload.asp)
Peace