SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to catch browser reload and stop events

    Hi All,

    is it possible to catch the Browser's reload and stop events?
    I mean, I would like to do something when the user clicks on the Browser reload and stop buttons, how to catch these events?

    Thanks,
    Stefano

  2. #2
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think you can.

    The closest you can get to reload would be the onUnload event handler (which isn't even very close). All it tells you is that they're leaving the page, not where they're going - even if they're coming right back.

    And as for stop - no chance.


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
  •