public interface

HTMLLabelElement

implements HTMLElement
org.w3c.dom.html.HTMLLabelElement

Class Overview

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

See also the Document Object Model (DOM) Level 2 Specification.

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.Node
Public Methods
abstract String getAccessKey()
A single character access key to give access to the form control.
abstract HTMLFormElement getForm()
Returns the FORM element containing this control.
abstract String getHtmlFor()
This attribute links this label with another form control by id attribute.
abstract void setAccessKey(String accessKey)
abstract void setHtmlFor(String htmlFor)
[Expand]
Inherited Methods
From interface org.w3c.dom.Element
From interface org.w3c.dom.Node
From interface org.w3c.dom.html.HTMLElement

Public Methods

public abstract String getAccessKey ()

A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

public abstract HTMLFormElement getForm ()

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

public abstract String getHtmlFor ()

This attribute links this label with another form control by id attribute. See the for attribute definition in HTML 4.0.

public abstract void setAccessKey (String accessKey)

public abstract void setHtmlFor (String htmlFor)