Mozilla XUL Element and Script Reference

Contents  Quick Reference

Text

(Deprecated) A piece of text. It can be used as a label for another element by using the for attribute. The text does not wrap so text only appears on one line. If the text does not fit, it will be cropped according to the crop attribute. This element has been replaced by the description and label elements.

Example:

    <text value="Look at me! I'm a label!"/>

Attributes:

Attributes inherited from XUL Element

for

The attribute is used when the text element is used as a label and is similar to the for attribute on an HTML label. It should be set to the id of an element that the label is associated with. When the user clicks on the label, the associated element is given the focus.

Properties and Methods:

Properties and Methods inherited from XUL Element