9.4. Using Commands Via XUL

XUL provides the <command> tag for Mozilla commands. The tags <commandset> and <commands> are also used, but they are user-defined tags with no special meaning of their own. A <commandset> tag is used to contain a set of <command> tags and acts like the other XUL container tags, like <keyset>.

XUL also contains a number of XML attributes that can be applied to any tag. They are

command events targets commandupdater

and two event handlers:

oncommand oncommandupdate

Outside of XUL, the Mozilla Platform also has many predefined command names, but we'll discuss those in more detail later.

9.4.1. <command> and command=

The <command> tag is used to define a Mozilla command, just as the <key> tag is used to define a Mozilla ...

Get Rapid Application Development with Mozilla™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.