command -- Defines functionality that can be called from multiple sources

Contained by


Additional Attributes

disabled, accesskey, observes, label, checked


The command element provides a place to organize functionality used in more than one place in the interface -- from a context menu, a keyboard shortcut, and a regular menu, for example. The element is identified and shared by using its ID value and an interested element's (i.e., a menu that wants the command) observes attribute. It also typically calls a JavaScript command from its oncommand event handler.

See Also

commands, commandset