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.<br>
<br>Marius Gundersen<br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 3:45 PM, Adam Barth <span dir="ltr"><<a href="mailto:whatwg@adambarth.com">whatwg@adambarth.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I looked around in the HTML5 draft, but it wasn't obvious to me if it<br>
explains how to handle navigation events generated during the unload<br>
event. As far as I can tell by testing browsers, these navigation<br>
events are ignored.<br>
<font color="#888888"><br>
Adam<br>
</font></blockquote></div><br>