XUL Programmer's Reference Manual
<textfield>
The <textfield> element is a text input box not unlike the html <textarea> element. The default <textfield> element has a single line, but the multiline attribute makes it into larger, multiline text area.
| ||||||||||||||||||||||
value | ||||||||||||||||||||||
Description
value is the main attribute for adding text to textfield widgets.Syntax <textfield value="string" />Example <textfield value="drink me" />Notes
|
||||||||||||||||||||||
multiline | ||||||||||||||||||||||
Description
multiline turns the <textfield> from a single line textfield into a textarea.Syntax <textfield multiline="true | false" />Example <textfield multiline="true" value="lots of text" />Notes
|
||||||||||||||||||||||
maxlength | ||||||||||||||||||||||
Description
maxlength specifies how long the text is before it wraps in the textfield.Syntax <textfield maxlength="length in characters" />Example <textfield maxlength="30" value="lots and lots and lots and lots of text" />Notes
|
||||||||||||||||||||||
read-only | ||||||||||||||||||||||
Description
read-only indicates that the value of the textfield cannot be edited.Syntax <textfield read-only="true | false" />Example <textfield read-only="true" value="futile to edit me" />Notes
|
||||||||||||||||||||||
Last updated: 1/3/01 Ian
Oeschger
|