type
autocomplete
number
decimalplaces
, min
, max
, increment
, wraparound
, hidespinbuttons
, and textbox.value
.password
search
searchbutton
attribute is set to true
, the command event is only fired if the user presses the search button or presses the Enter
key. You may specify grey text to appear when the search box is empty using the emptytext
attribute, and a timeout may be set for the command event using the timeout
attribute (defaults to 500).timed
timeout
attribute. The command event will fire if the user presses the Enter
key. The timed
type is deprecated in Gecko 1.9.1 and the search
textbox may be used instead.XBL-specific note
Beware that if you create an XBL binding for a textbox, you need to use the appropriate extends
attribute and changing type
attribute on the tree won't have effect. E.g. if you have <binding id="input" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete" >
, then the textbox will have autocomplete type, regardless of tree's 'type' attribute. Use <binding extends="chrome://global/content/bindings/textbox.xml#textbox" >
for ordinary textbox.