org.w3c.dom.html
public interface HTMLLabelElement extends HTMLElement
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.Returns
null if this control is not within the context of a form. |
String | getHtmlFor()
This attribute links this label with another form controlby
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.