HTMLLabelElement

Availability

BlackBerry Device Software version 4.6 or later

Extends

HTMLElement

The HTMLLabelElement object represents a <label> element in an HTML document.

The <label> element provides a descriptive label for an <input>, <select>, and <textarea> elements in a form.

Properties

Property name

Type

Description

Status

Support level

Availability

accessKey

DOMString

Specifies the keypad key that gives access to the element.

writable

DOM 2 HTML

4.6 or later

form

HTMLFormElement

Returns the parent <form> element for the form control.

read only

DOM 2 HTML

4.6 or later

htmlFor

DOMString

Specifies the form control with which the label is associated. The value must be the value of the id attribute of the related element.

writable

DOM 2 HTML

4.6 or later

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus