Visit Mozilla.org

XUL:Attribute:oncommand

From MDC

« XUL Reference home

oncommand
Type: script code
This event handler is called when the command is activated. This occurs when a user selects a menu item or presses a keyboard shortcut attached to the command.

[edit] Example

<button label="Click me" oncommand="alert('Hi')"/>

[edit] See also

command element