XUL Widgets: Attributes, Properties, and Methods
The following list describes the inventory of attributes, properties, and methods used by the XUL elements that are accessible from JavaScript code.
Tip
Although all JavaScript-managed attributes are accessed as strings, this glossary adds data types to provide guidance if the string value should represent a specific type. Examples of these types include Boolean, integer, and the name of a required interface. Properties without such qualifiers are presumed to be strings whose context is set by the application or by a specific interface design (e.g., the “ID” of widget). For ease of reference and to distinguish them from their data types, attribute, property, and method names are set in boldface font.
-
nsIAccessibleaccessible The
accessibleproperty is available on all elements that inherit from thensIAccessibleinterface. The interface provides assistive technology services similar to those of the Accessibility Toolkit (ATK) and Microsoft Active Accessibility (MSAA).-
characcessKey The character used as a keyboard accelerator; when coupled with an operating-system-specific keyboard combination, it triggers the control actuation.
-
booleanafterselected When assigned to a tab, returns
trueif the tab is immediately after the currently selected tab.-
align Sets the alignment characteristics of the button in a manner consistent with all box containers. Interpretation of the
alignattribute is subject to thedirattribute:"start"Elements ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access