[Project_owners] Sidebar onclose/unload

Brian King brian at mozdev.org
Sun Dec 17 13:51:23 PST 2006


[Firefox Sidebar]

I can find out when my content is loading using:

document.getElementById("sidebar").addEventListener("DOMContentLoaded", 
myFunction, false);

However, onclose and onunload on the content loaded in does not work. Is 
there is a way to find out when the sidebar is closing? Preferably the 
solution determines all cases (x button being clicked, some other 
content taking the place of your content, Firefox closing).

-- 
Brian King
www.mozdev.org - free project hosting for the Mozilla community


More information about the Project_owners mailing list