A single choice in a
Menupopup
element. It acts much like a button but it is rendered on a menu.
<menu label="File"> <menupopup> <menuitem label="New" onClick="alert(self.label)"/> <menuitem label="Open" onClick="alert(self.label)"/> <menuitem label="Save" onClick="alert(self.label)"/> <menuseparator/> <menuitem label="Exit" onClick="alert(self.label)"/> </menupopup> </menu>
Event Name |
Event Type |
---|---|
|
Description: A menu command is associated with a menu item. There are two ways to associate a command to it: the |
Property |
Description |
Data Type |
Default Value |
---|---|---|---|
|
The value |
|
|
|
The target frame or window. |
|
|
|
The href |
|
|
|
Whether the menuitem check mark will update each time the menu item is selected Values: |
|
|
|
Whether it is checked. Values: |
|
|