Results 1 to 1 of 1

Thread: Detecting a click on Browser's 'Home' button

  1. #1
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default Detecting a click on Browser's 'Home' button

    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.
    Last edited by codeexploiter; 12-17-2008 at 07:03 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •