Visit Mozilla.org

XUL:Attribute:command

From MDC

« XUL Reference home

command
Type: element id
Set to the id of a command element that is being observed by the element.

[edit] Example

<command id="cmd_openhelp" oncommand="alert('Help');"/>
<button label="Help" command="cmd_openhelp"/>
<button label="More Help" command="cmd_openhelp"/>

[edit] See also

command element, oncommand and commandset