This article covers features introduced in SeaMonkey 2
The smileIBrowserTab
interface represents a browser tab. smileIBrowserTab
is defined in http://mxr.mozilla.org/comm-central/source/suite/smile/public/smileIApplication.idl.
Implemented via XPCOM service for extIApplication
: see the instructions on the FUEL (Firefox), STEEL (Thunderbird) and SMILE (SeaMonkey) pages.
Method overview
Return Type | Method |
---|---|
void | load(in nsIURI aURI) |
void | focus() |
void | close() |
void | moveBefore(in smileIBrowserTab aBefore) |
void | moveToEnd() |
Attributes
Attribute | Type | Description |
uri | readonly attribute nsIURI | The current uri of this tab. |
index | readonly attribute PRInt32 | The current index of this tab in the browser window. |
window | readonly attribute smileIWindow | The browser window that is holding the tab. |
document | readonly attribute nsiDOMHTMLDocument | The content document of the browser tab. |
events | readonly attribute extIEvents | The events object for the browser tab. supports: "load" |
Methods
load()
Load a new URI into this browser tab.
void load(in nsIURI aURI)
Parameters
aURI
- The uri to load into the browser tab
Return value
focus()
Give focus to this browser tab, and bring it to the front.
void focus()
Parameters
aBefore
- The tab before which the target tab will be moved
Return value
close()
Close the browser tab. This may not actually close the tab as script may abort the close operation.
void close()
Parameters
Return value
moveBefore()
Moves this browser tab before another browser tab within the window.
void moveBefore(in smileIBrowserTab aBefore)
Parameters
Return value
moveToEnd()
Move this browser tab to the last tab within the window.
void moveToEnd()