[Javascript] How to refer to an HTML element's ID attribute

Andrew Gibson andyg at ihug.co.nz
Thu Nov 13 22:25:30 CST 2003


In what way refer to?  You can reference the element by
document.getElementById("myElement")  but i'm sure thats not what you are
after.
Once you have referred to an element, of course you can then refer to child
or parent elements of the element, so I might head down that track....

Sent: Friday, November 14, 2003 12:59 PM
Subject: [Javascript] How to refer to an HTML element's ID attribute


> Hello all,
>
> What is the syntax to refer to an HTML element's ID attribute?
>
> Thanks,
>
> Robert Pollard
>





More information about the Javascript mailing list