Instance Property

command

The command identifier that the menu item sends when activated.

Declaration

attribute DOMString command;

Discussion

If the submenu property is null, setting the value of this property to null, undefined, or the empty string has no effect.

If the submenu property is defined, validate events are sent using the value of this property; if this property is blank, events are sent using the menu item’s identifier.

Changes made to the command property take effect immediately, regardless of visibility.

See Also

Identifying Menu Items

identifier

The unique identifier of the menu item.