Help Center

Local Navigation

Object: HTMLButtonElement

Availability

BlackBerry® Device Software version 4.6 or later

Extends

HTMLElement

The HTMLButtonElement object represents a <button> element in an HTML document.

The <button> element defines a button form control.

HTMLButtonElement properties

Property name

Type

Description

Status

Support level

Availability

accessKey

DOMString

Specifies the key that gives access to the form control.

writable

DOM 2 HTML

4.6 or later

disabled

boolean

When true, indicates that the form control is not available.

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

name

DOMString

Specifies the name of the form control. This is the name portion of the name-value pair that is submitted with the form.

writable

DOM 2 HTML

4.6 or later

tabIndex

int

Specifies the tabbing order of the form control.

writable

DOM 2 HTML

4.6 or later

type

DOMString

Returns the type of form control. The value for this property may be button, reset, or submit.

read only

DOM 2 HTML

4.6 or later

value

DOMString

Specifies the current value of the form control. This is the value portion of the name-value pair that is submitted with the form.

writable

DOM 2 HTML

4.6 or later


Was this information helpful? Send us your comments.