The LABEL Element


The <LABEL> Element

You use the <LABEL> element to specify a label for a control in a form such as a text field or a button. This element has two properties not covered by the core list, and you can see those properties in Table 11.7.

Table 11.7. The Properties of the <LABEL> Element (See Chapters 5 and 6 for the JavaScript core HTML properties, methods , and events that also apply to this element.)

Property

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

form

     

x

         

x

 

Read/write

 

This property holds a reference to the form object the control is embedded in.

htmlFor

     

x

   

x

x

x

x

 

Read/write

 

This property sets or gets the object to which the label object is assigned.



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net