« XUL Reference home
getBrowserIndexForDocument( document )
Return type: integer
Returns the index of the browser for the specified document in the tabbrowser the method was invoked on. The returned index is dependent on the tabs in the tabbrowser and is invalidated when the tab ordering changes. It should not be used to track per-tab data during a session; the use of linkedpanel on the corresponding tab is preferred instead.