liglin wrote:
> Hello Evertjan,
> I didn't know about the ID attribute!
>
> Thanks a lot for your help
>
> Liglin
>
>
It is very hard to do anything in Javascript with the browser, without
using the ID attribute. All tags have it, and it is how you get access
to the objects.
See document.getElementById(). There are other uses, like in IE,
document.all.id or document.all['id']. Of course, the getElementById is
safer. Look into capability checking...
if(document.getElementById)
... use getElementById
else if (document.all)
... use document.all
Brian
|