XUL Programmer's Reference Manual

<text />

Attributes Common Children
value * * *
class  
id  
 

<textfield />

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

<text> is a general purpose text display widget. It can be used in places where you want to display text by itself, as you might have done previously with an HTML label, or where the text is a part of a composite XBL widget.

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.

The difference between the two widgets can be seen in the following example:

<textfield value="Fill in here" />
<textfield
  value="I am a textarea now"   multiline="true"/>

Last updated: 3/31/00 Ian Oeschger