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