org.w3c.dom.html
public interface HTMLLabelElement extends HTMLElement
See also the Document Object Model (DOM) Level 1 Specification (Second Edition).
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) |
void | setHtmlFor(String htmlFor) |
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.0.