August 1999
Intermediate to advanced
1488 pages
72h 53m
English
reset.value
The value property of the Reset object represents the HTML VALUE attribute of the Reset button.
Listing 7.455 shows how the Reset button value can be accessed.
<html>
<head>
<title> Example of the reset value property</title>
</head>
<body>
<form name="form1">
Enter Name: <input type="text" Name="name" Size=15>
<br>
Enter Phone: <input type="text" Name="phone" Size=10>
<br><br>
<input type="reset" name=resetbutton value=Reset
onClick='alert("The button value is: " + document.form1.resetbutton.value)'>
<br>
<br>
</form>
</body>
</html>
|
Read now
Unlock full access