Help Center

Local Navigation

Object: 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.

HTMLLabelElement properties

Property name

Type

Description

Status

Availability

accessKey

String

Specifies the keypad key that gives access to the element.

writable

4.6 or later

form

HTMLFormElement

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

read only

4.6 or later

htmlFor

String

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

4.6 or later


Was this information helpful? Send us your comments.