Mozilla XUL Element and Script Reference

Contents  Quick Reference

Tabs

A row of tabs. A tabs element should be placed inside a tabbox and should contain tab elements.

Attributes:

Attributes inherited from XUL Element

Properties and Methods:

Properties and Methods inherited from XUL Element

advanceSelectedTab ( dir )

If the argument dir is set to 1, the currently selected tab changes to the next tab. If the argument dir is set to -1, the currently selected tab changes to the previous tab.

appendItem ( label , value )     Moz0.9.6

Creates a new tab element and adds it to the end of the list of tabs. You may optionally set a value. Note that a new tabpanel is not created. This method returns the added tab.

insertItemAt ( index, label , value )     Moz0.9.6

Creates a new tab element and inserts it at a specific position in the list of tabs. You may optionally set a value. This method returns the added tab.

removeItemAt ( index )     Moz0.9.6

Removes the child tab in the menu at the given index.

selectedIndex    Moz0.9.6

Gets or sets the index of the currently selected tab.

selectedItem    Moz0.9.6

Holds a reference to the currently selected tab element. Assign a value to this property to modify the currently selected tab.