
February 5th, 2002, 11:08 PM
|
|
Contributing User
|
|
Join Date: Nov 2001
Posts: 765
Time spent in forums: 3 m 45 sec
Reputation Power: 12
|
|
|
You get exactly one undefined property without JavaScript throwing an error - so
if (document.MyForm.myBox)
should work fine, so long as there's a MyForm to find. My guess is: you're running that in the <head>er, before the form has been created. There's nothing but a document object at that point so you'll definately get an error when the script engine hits MyForm. Put it in a function & call onload, or stick in a JS block below the form.
|