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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -