Can I customize onbeforeunload event?
Apr 6th, 2008 19:59
ha mo, Jean-Bernard Valentaten, Colin Fraser, Milko Gonzalez,
> I have gone over the latest documentation I have but I can not find an
> event called onbeforeunload, I have an onUnload, is this a custom
> More than likely, there is no such event. How could there be?
> Logically the stateless connectivity of web browsers implies that
> events cannot be trapped until they have been initiated, so how can
> reactionary. You sure you are not confusing Visual Basic or Java with
> If I am wrong, then please accept my apologies, but I have no
> documentation about such an event..
Well, the idea is correct (how can an event be triggered, before it is
fired), but onBeforeUnload does really exist. It is not well
documented, but searching msdn brings this page up:
Hope this helps you out Milko.