Connecting Tech Pros Worldwide Help | Site Map

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

Robert Oschler
Guest
 
Posts: n/a
#1: Jul 20 '05
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
Guest
 
Posts: n/a
#2: Jul 20 '05

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


"Robert Oschler" <no_replies@fake_email_address.invalid> wrote in message
news:fzK9b.56$qK1.94576@news2.news.adelphia.net...[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.attachEvent("onbeforeunload",functionname)



Closed Thread


Similar JavaScript / Ajax / DHTML bytes