Mostbet  |   Blog  |   Sitemap  |   Search  
Home
JavaScript UI FrameworkReference

Element command

A command element can be used to invoke an operation that can come from multiple sources. For example, a clipboard paste operation can be invoked from the Edit menu, a context menu and by pressing a keyboard shortcut. You attach the code to the command using the oncommand attribute. It will be called no matter how it is invoked by the user. In addition, disabling the command will automatically disable the menu items and keyboard shortcuts. Commands are identified by their id. Like a broadcaster, commands forward attributes to other elements. You should put all your command elements into commandset placeholder.

Extends

XULElement

Members Table

The following table lists the members exposed by the command object.

Show:
Attributes
Properties
Methods
Events
Pseudo-classes