Button to display the name of the form : Button : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Button »

 

Button to display the name of the form




<html>

<body>
<form name="myForm">
    The form's name is: <input type="text" name="text1" size="20">
    <br>
    <br>
    <input type="button" value="Show the form's name" 
                onClick="this.form.text1.value=this.form.name">
</form>
</body>

</html>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» Button