label
- Type: string
- Sets the
label
attribute. Gets thelabel
attribute if it is present and not empty. Otherwise it returns thevalue
of the associatedlabel
element, if applicable. Otherwise it returns theplaceholder
oremptyText
property. The getter is mostly useful for screen readers.Note: Prior to Firefox 3, and always in Thunderbird and SeaMonkey, the label property of an autocomplete textbox returns its value, for compatibility with the
menulist
element.