Submit.value
|
|
The value property returns the current value of the submit button. This value is what is displayed on the button itself. |
<html> <head> <script language="JavaScript1.1"> <!-- function getValue(){ alert("The value of this submit button is " + document.myForm.elements[1].value); } --> </script> </head> <body> <form name="myForm"> <input type=TEXT value="First Box" name="myText"> <input type=SUBMIT value="Submit" name="mySubmit" onClick='getValue()'> </form> </body> </html>
|
|
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
-
-
|