onbeforeunload in an iframe

Discussion in 'HTML' started by Tim Streater, Sep 18, 2012.

  1. Tim Streater

    Tim Streater Guest

    I have an iframe in which I load a page. This page may be replaced,
    later, by a second page. When this happens, the first page would like to
    do some tidy up - so when first loaded, the first page registers an
    onbeforeunload handler.

    Problem is that the onbeforeunload event of the first page doesn't seem
    to fire when the second page is loaded. This is in Safari 6.0 Mac. Is
    there anything about the above scenario which would prevent this event
    from firing?

    --
    Tim

    "That excessive bail ought not to be required, nor excessive fines imposed,
    nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
    Tim Streater, Sep 18, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kathy Burke
    Replies:
    0
    Views:
    2,821
    Kathy Burke
    Aug 4, 2003
  2. Rick Lubanovic

    onbeforeunload event is fired twice

    Rick Lubanovic, Oct 30, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    815
    Rick Lubanovic
    Oct 30, 2003
  3. Daedalous
    Replies:
    3
    Views:
    658
    Daedalous
    Jan 16, 2004
  4. Replies:
    0
    Views:
    155
  5. fabus
    Replies:
    0
    Views:
    161
    fabus
    Aug 6, 2008
Loading...

Share This Page