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

HTML DOM Reset value Property

Reset value Property

Reset Object Reference Reset Object


Definition and Usage

The value property sets or returns the value of the value attribute of the reset button.

The value property specifies the text displayed on the reset button.

Syntax

Set the value attribute:

resetObject.value="

value

"

Return the value attribute:

resetObject.value


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the value property.


Example

Example

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

Runoob Tutorial(runoob.com)

Email:

Try it »


Reset Object Reference Reset Object