/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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}