menuitem.name

name
Type: string name
Radio menuitems with the same name as put into a group. Only one menuitem in each radio group can be checked at a time.

Example

<toolbox>
  <menubar id="planets-menubar">
    <menu id="planet-menu" label="Planet">
      <menupopup>
        <menuitem id="jupiter" label="Jupiter" type="radio" name="planet"/>
        <menuitem id="saturn" label="Saturn" type="radio" name="planet" checked="true"/>
        <menuitem id="uranus" label="Uranus" type="radio" name="planet"/>
      </menupopup>
    </menu>
  </menubar>
</toolbox>

See also

name and menus in the XUL Tutorial

Document Tags and Contributors

Contributors to this page: Pmash, Sheppy, Dria, Marsf, Mgjbot
Last updated by: Sheppy,