Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface HTMLLabelElement
extends HTMLElement
See also the Document Object Model (DOM) Level 2 HTML Specification.
Method Summary | |
String |
|
HTMLFormElement |
|
String |
|
void |
|
void |
|
Methods inherited from interface org.w3c.dom.Element | |
getAttribute , getAttributeNS , getAttributeNode , getAttributeNodeNS , getElementsByTagName , getElementsByTagNameNS , getSchemaTypeInfo , getTagName , hasAttribute , hasAttributeNS , removeAttribute , removeAttributeNS , removeAttributeNode , setAttribute , setAttributeNS , setAttributeNode , setAttributeNodeNS , setIdAttribute , setIdAttributeNS , setIdAttributeNode |
Methods inherited from interface org.w3c.dom.html2.HTMLElement | |
getClassName , getDir , getId , getLang , getTitle , setClassName , setDir , setId , setLang , setTitle |
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 theFORM
element containing this control. Returnsnull
if this control is not within the context of a form.
public String getHtmlFor()
This attribute links this label with another form control byid
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 byid
attribute. See the for attribute definition in HTML 4.01.