- From: Adam Barth <whatwg@adambarth.com>
- Date: Mon, 21 Sep 2009 23:05:24 -0700
Everything you say is true, but it is possible to generate navigation events synchronously. For example, you can programmatically submit a form to about:blank. Adam On Mon, Sep 21, 2009 at 11:02 PM, Marius Gundersen <gundersen at gmail.com> wrote: > AFAIK, only one event can run at a time. JavaScript has only one thread, so > an event generated while another event listener is executing is placed in a > queue, to be executed when the current execution thread is done. With > onunload, the entire page is unloaded after the event (if it returns true), > so the next event in the queue is ignored. > > Marius Gundersen > > On Tue, Sep 22, 2009 at 3:45 PM, Adam Barth <whatwg at adambarth.com> wrote: >> >> I looked around in the HTML5 draft, but it wasn't obvious to me if it >> explains how to handle navigation events generated during the unload >> event. ?As far as I can tell by testing browsers, these navigation >> events are ignored. >> >> Adam > >
Received on Monday, 21 September 2009 23:05:24 UTC