Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Submit value property

Submit value property

Submit Object Reference The Submit object


Definition and Usage

The value property can be set or returned to indicate the value of the value property of the submit button.

The value specifies the text displayed on the confirm button.

Syntax

Set the value attribute:

submitObject.value="

value

"

Return the value attribute:

submitObject.value


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the value property.


Example

Example

The following example displays the text shown on the confirm button:

Email:

Try it »


Submit Object Reference The Submit object