[Javascript] Add elements to form

Peter-Paul Koch gassinaumasis at hotmail.com
Mon Aug 6 10:36:45 CDT 2001


><td id="1">Hello</td><input type="hidden name="1" value="Hello">
>
>This seems a bit cumbersome. I've tried
>
>document.formname.1.value='Hello';
>
>Not surprisingly this doesn't work and I get  'document.formname.1 is null
>or not an object'. I haven't been able to find anything at
>developer.netscape.com, irt.org or anywhere else.
>
>So is it possible?

Exactly when do you do this? The forms array is only initalized and 
accessible after the page has been loaded completely (onLoad, in other 
words).

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the Javascript mailing list