Input Reset value Property

❮ Input Reset Object

Example

Change the text displayed on a Reset button:

document.getElementById("myReset").value = "newResetButtonValue";
Try it Yourself »

Description

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

Property
value Yes Yes Yes Yes Yes

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;
Try it Yourself »

Related Pages

HTML reference: HTML <input> value attribute


❮ Input Reset Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.