Click to See Complete Forum and Search --> : Does Navigator NOT support document.forms[0].elements['elemName'] ?


Tim
06-05-2003, 06:22 PM
The subject says it all. I'm trying to write some code and it appears that the line:
alert("document.forms[0].elements['elemName']="+document.forms[0].elements['elemName']);

does not run in NN but works fine in IE. So I take it that you can't access from elements by name in NN?

Regards,

-Tim

pyro
06-05-2003, 06:25 PM
I would reference form elements like this:

document.formname.elementname
or
document.forms[0].elementname