X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Input Reset value Property

Input Reset Object Reference Input Reset Object

Example

Change the text displayed on a Reset button:

document.getElementById("myReset").value = "newResetButtonValue";

Try it yourself »


Definition and Usage

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

The value attribute defines the text that is displayed on the reset button.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The value property is supported in all major browsers.


Syntax

Return the value property:

resetObject.value

Set the value property:

resetObject.value=text

Property Values

Value Description
text The text displayed on the reset button

Technical Details

Return Value: A String, representing the text displayed on the reset button


More Examples

Example

Get the text displayed on a Reset button:

var x = document.getElementById("myReset").value;

The result of x will be:

Reset form

Try it yourself »


Related Pages

HTML reference: HTML <input> value attribute


Input Reset Object Reference Input Reset Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook