Used to create a separator between menu items. Typically drawn as a thin line.
More information is available in the XUL tutorial.
<menu label="Menu"> <menupopup> <menuitem label="Item1"/> <menuseparator/> <menuitem label="Item2"/> <menuitem label="Item3"/> </menupopup> </menu>
accesskeylabel attribute for the element.
alloweventscropcrop attribute. An ellipsis will be used in place of the cropped text. If the box direction is reversed, the cropping is reversed.startendleftrightcenternonenone and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none:menupopup > menuitem, menupopup > menu { max-width: none; }
disabledcommand event will not fire. In the case of form elements, it will not be submitted. Do not set the attribute to true, as this will suggest you can set it to false to enable the element again, which is not the case.
disabled attribute is allowed only for form controls. Using it with an anchor tag (an <a> link) will have no effect.disabled property which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.selectedselectedIndex or selectedItem property of the containing element.tabindextab" key. Elements with a higher tabindex are later in the tab sequence.valuemenulist elements, the contents, as visible to the user, are read and set using the Menulist.value syntax. For those elements, setAttribute("value", myValue) and getAttribute("value") do not access or affect the contents displayed to the user.
accessibleTypelabelElementlabel elementlabel element associated with the control. This is set when a label has a control attribute pointing to this element. This property will be null when no label is associated with the control.parentContainer menu elementmenu element, or null if there isn't a containing menu.selectedtrue if this element is selected, or false if it is not. This property is read only. This property is available for menuitem and menuseparator elements in Firefox 3.valuevalue attribute. For textbox and user editable menulist elements, the contents, as visible to the user, are read and set using the Textbox.value and Menulist.value syntax.
menu, menubar, menuitem, menulist, menupopupnsIAccessibleProvider, nsIDOMXULContainerItemElement, nsIDOMXULSelectControlItemElement