Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.
type
Type: string
The type of button. If this attribute is not present, a normal button is created. You can set this attribute to the value menu to create a button with a menu popup. This will typically cause the button to be displayed differently.
  • menu: Set the type attribute to the value menu to create a button with a menu popup. Place a menupopup element inside the button in this case. The user may click anywhere on the button to open and close the menu.
  • menu-button: You can also use the value menu-button to create a button with a menu. Unlike the menu type, this type requires the user to press the arrow to open the menu, but a different command may be invoked when the main part of the button is pressed.
  • checkbox: Use this type to create a toggle button which will switch the checked state each time the button is pressed.
  • radio: Use this type to create a radio button. You can also create a group of toolbarbuttons using this type and the attribute group.
Examples:
type value <toolbarbutton >
  Toolbarbutton without a type attribute
menu Toolbarbutton with type attribute equals "menu"
menu-button Toolbarbutton with type attribute equals "menu-button"
checkbox Toolbarbutton with type attribute equals "checkbox"
radio Toolbarbutton with type attribute equals "radio"

See also

Document Tags and Contributors

 Contributors to this page: Makyen, Sheppy, codefisher, pwalton, Marsf, Yanmorin, Enn, Mgjbot, Dria
 Last updated by: Makyen,