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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -