XUL Programmer's Reference Manual

<textfield />

Attributes Common Children
value * * *
class  
align  
oncommand  
id  
multiline  

The textfield element provides a text-entry widget very much like the HTML <input type="textfield" /> widget. You can use the value attribute to put text in the field when it's loaded and the multiline to use the textfield as a multi-line textarea.
 
 

value
Description
The value attribute specifies the text displayed in the textfield.
Syntax
<textfield value="string" />
Example
<textfield value="Enter the recipient's address here" />
Notes
None.
 
multiline
Description
The multiline attribute changes the single-line textfield into a textarea widget.
Syntax
<textfield multiline="true | false" />
Example
<textfield value="Fill in here" />
<textfield
  value="I am a textarea now"   multiline="true"/>
Notes
When the user types in the multiline textfield, the field will scroll horizontally if the entry is longer than the available width. You have to explicitly type a carriage return to enter text on the next line.
 

Last updated: 3/31/00 Ian Oeschger