Can't seem to attach to "onbeforeunload" event.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Oschler

    Can't seem to attach to "onbeforeunload" event.

    I've successfully attached to the "onclick" and several other events using
    AttachEvent(). But when I try to attach to the "onbeforeunload " event it
    doesn't work (the handler I've assigned is never called).

    Is there something different about this event?

    Is there another way to attach to this event that would work, other than
    manually filling in the <BODY> tag with an 'onunloadbefore ' assignment?

    thx

    --

    Robert Oschler


  • Vjekoslav Begovic

    #2
    Re: Can't seem to attach to &quot;onbeforeu nload&quot; event.

    "Robert Oschler" <no_replies@fak e_email_address .invalid> wrote in message
    news:fzK9b.56$q K1.94576@news2. news.adelphia.n et...[color=blue]
    > I've successfully attached to the "onclick" and several other events using
    > AttachEvent(). But when I try to attach to the "onbeforeunload " event it
    > doesn't work (the handler I've assigned is never called).
    >
    > Is there something different about this event?
    >
    > Is there another way to attach to this event that would work, other than
    > manually filling in the <BODY> tag with an 'onunloadbefore ' assignment?[/color]

    window.attachEv ent("onbeforeun load",functionn ame)



    Comment

    Working...