Tabbed browser

Simplified code in "Detecting page load"

I rewrote this snippet to be a bit more simple

if (foo) { bar; quuz; } else { bar; }

was simplifiable to:

bar; if (foo) quuz;

I've also changed the comments to be clear about what was going on. GijsKruitbosch 11:49, 11 December 2006 (PST)

gBrowser, within an extension

removed confused section --Nickolay 09:14, 9 January 2007 (PST)

 	+	// gBrowser is only accessible from the scope of Firefox, to use gBrowser within an extension you must declare it
 	+	var gBrowser = document.getElementById("content");

Getting document of currently selected tab

Anyone mind if I change this to "Getting the window object of the currently selected tab", and include info that from the window, you can access the document, the URL, etc?--Np 10:52, 24 May 2007 (PDT)

Notification when a tab is removed

Does this include the last tab in a window (ie, when the window closes)? --Docwhat 13:37, 6 November 2007 (PST)

Detecting page unload

There is documentation for page load, but how does one detect page unload? --Docwhat 13:37, 6 November 2007 (PST)

Detecting page load and XPCNativeWrapper

As I understand in "Detecting page load" code event.originalTarget is XPCNativeWrapper object and it doesn't support instanceof. Does this code really work? --CrazyEyE 11:49, 18 March 2008 (PDT)

Reusing tab code fix

The 're-using by other criteria' code doesn't change the url of the tab. It is missing this line:

tabbrowser.loadURI(url, tabbrowser.currentURI, "UTF-8");

 

Document Tags and Contributors

Contributors to this page: GijsKruitbosch, Docwhat, Np, Nickolay, graham_king, CrazyEyE, Jrm
Last updated by: graham_king,