onload - XUL event listener for page load (in current tab only) or tab switch -
is there simple script allow me notified if page loaded in current tab or if new tab in focus?
this i've found. hope helps else:
// http://stackoverflow.com/questions/8355354/get-current-url-when-changing-tabs-in-xul-in-firefox window.addeventlistener("load", function(e) { gbrowser.tabcontainer.addeventlistener("tabselect", phoenix.ontabchange, false); }, false); window.addeventlistener("unload", function(e) { gbrowser.tabcontainer.removeeventlistener("tabselect", phoenix.ontabchange, false); }, false);
Comments
Post a Comment