HTML DOM value Property
Complete Reset Object Reference
Definition and Usage
The value property sets or returns the text that is displayed on the reset button.
Syntax
resetObject.value=sometext
|
Example
<html>
<head>
<script type="text/javascript">
function alertValue()
{
alert(document.getElementById("reset1").value)
}
</script>
</head>
<body>
<form>
<input type="reset" value="Reset values" id="reset1"
onclick="alertValue()" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Alert id,
type, and value of a reset button + disable button
Complete Reset Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|