[Javascript] difference

Dan Costea costea.dan at ssi-schaefer.ro
Fri Aug 22 11:31:38 CDT 2003


    Hi,

I work with IE; I have an HTML object:
<input id="lala"/>

What is the difference between referencing it in js code with: 
var myVal = document.all['lala'].value;
or just 
var myVal = lala.value;
?

Thanks,
Dan Costea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030822/2d9df85d/attachment.htm>


More information about the Javascript mailing list