Save This Page
Home » openjdk-7 » org.w3c » dom » html2 » [javadoc | source]
org.w3c.dom.html2
public interface: HTMLLabelElement [javadoc | source]

All Implemented Interfaces:
    HTMLElement

Form field label text. See the LABEL element definition in HTML 4.01.

See also the Document Object Model (DOM) Level 2 HTML Specification.
Method from org.w3c.dom.html2.HTMLLabelElement Summary:
getAccessKey,   getForm,   getHtmlFor,   setAccessKey,   setHtmlFor
Method from org.w3c.dom.html2.HTMLLabelElement Detail:
 public String getAccessKey()
    A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.01.
 public HTMLFormElement getForm()
    Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
 public String getHtmlFor()
    This attribute links this label with another form control by id attribute. See the for attribute definition in HTML 4.01.
 public  void setAccessKey(String accessKey)
    A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.01.
 public  void setHtmlFor(String htmlFor)
    This attribute links this label with another form control by id attribute. See the for attribute definition in HTML 4.01.