PDA

View Full Version : Resolved Detecting a click on Browser's 'Home' button



codeexploiter
12-17-2008, 04:15 AM
Hi All,

I am looking for a method using which I can detect the click on browser's 'Home' button from the user and execute a set of routines. An example of the one I want is in Yahoo! mail, open your Yahoo! mail account, start composing a new message and then press the 'Home' button in your browser. A confirmation box will be displayed asking that whether we wish to leave the new message that we are composing.

I would like to know how they've implemented the feature.

I would be really thankful for any help regarding this.

-----------

The problem I've mentioned solved through the 'onbeforeunload' event, of course it is a non-standard event but most of the popular browsers supports this event. For my purpose at the moment I think this can be utilized.