[Javascript] javascript and id's

Peter Brunone peter at brunone.com
Tue Oct 4 12:09:21 CDT 2005


Based on what source?

Is the name attribute becoming obsolete?  I find it hard to believe they'd change the form object model like that, but stranger things have happened...

 From: Anthony Ettinger apwebdesign at yahoo.com

Yes, you can. But it's my understanding that method is
quickly becoming obsolete, infavor of 

var object = document.getElementById('foo');

--- Flavio Gomes wrote:
> 
> Having a form named* "myForm" and an input named
> "myInput":
> You can access it by "document.myForm.myInput" in
> the majority of the 
> browsers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20051004/e8fb9e7a/attachment.htm>


More information about the Javascript mailing list