Talk:Code snippets:Tabbed browser
From MDC
Contents |
[edit] 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)
[edit] gBrowser, within an extension
removed confused section [1] --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");
[edit] 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)
[edit] 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)
[edit] Detecting page unload
There is documentation for page load, but how does one detect page unload? --Docwhat 13:37, 6 November 2007 (PST)
[edit] 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)