A container used to display a set of tabbed pages of elements. A row of tabs is displayed at the top of tabbox which may be used to switch between each page. The
tabbox should contain two children, the first a
tabs element which contains the tabs and the second a
tabpanels element which contains the contents of the pages.
More information is available in the XUL tutorial.
<tabbox id="myTabList" selectedIndex="2"> <tabs> <tab label="A First tab"/> <tab label="Second tab"/> <tab label="Another tab"/> <tab label="Last tab"/> </tabs> <tabpanels> <tabpanel><!-- tabpanel First elements go here --></tabpanel> <tabpanel><!-- tabpanel Second elements go here --></tabpanel> <tabpanel><button label="Click me"/></tabpanel> <tabpanel><!-- tabpanel Fourth elements go here --></tabpanel> </tabpanels> </tabbox>
- Type: one of the values below
- Indicates where keyboard navigation events are listened to. If this attribute is not specified, events are listened to from the
tabbox. Thus, if this attribute is not used, the
tabboxor an element inside it must have the focus for the keyboard navigation to apply.
- Keyboard navigation is captured at the parent of the
- Keyboard navigation is captured at the window level. Tab navigation will occur as long as any element in the window is focused.
- Keyboard navigation is captured at the document level. Tab navigation will occur as long as any element in the document is focused.
- Type: integer
- A value indicating the type of accessibility object for the element.
- Type: integer
Returns the index of the currently selected item. You may select an item by assigning its index to this property. By assigning
-1to this property, all items will be deselected.
- Type: element
- Holds a reference to the currently selected panel within a
<tabbox>element. Assigning a value to this property will modify the selected panel. A select event will be sent when the selected panel is changed.