Reset.name
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
reset.name
Description
The name property of the Reset object represents the name given to a Reset button as specified from the NAME attribute of the HTML <input type="reset"> tag.
Example
In Listing 7.450, the name property is used to inform the user of the active frame.
Listing 7.450 Example of the name Property
<html> <head> <title> Example of the reset name 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 reset button name is: " + document.form1.resetbutton.name)'> <br> <br> ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.