Feedback on: irt.org FAQ Knowledge Base Q162
Worth:
Very worth reading
Length:
Too short
Technical:
Just right
Comments:
Question: I'm using NN 4.06. This script works fine when I test it; however, when I try accessing the value of a textfield within a function like so:
textarea = document.form1.textfield.value;
I get this error:
document.form1 has no properties.
Does this mean I have to place the function physically after the form tag in the file? That seems to be the only difference I can find.
Worth:
Worth reading
Comments:
Doesn't work with password type fields...
Worth:
Worth reading
Comments:
Think I followed your script to the letter but all I got a was an empty text field. Am I doing something wrong?
Great site.
Thanks.
My code...
<html>
<head>
<script language = "JavaScript">
</script>
</head>
<body>
<form name = "drawForm">
<input type="text" name="player1">
</form>
</body>
</html>