Return to Snippet

Revision: 23974
at February 17, 2010 23:19 by desmond54


Initial Code
the value of a text box defined with the markup <input type="text" name="Name" /> can be accessed using the expression document.forms[0].elements["Name"].value
OR
<input type="button" onclick="ShowText(this.form);" />
... ShowText(f){f.elements["Name"].value}

Initial URL


Initial Description


Initial Title
Accessing form elements

Initial Tags
javascript

Initial Language
JavaScript