Click to See Complete Forum and Search --> : getElementByID?


Webskater
09-16-2003, 05:30 AM
Can anyone tell me what you use

document.getElementById("");

for.

What is the difference between this and

document.actualIDofsomething

Thanks for any help.

requestcode
09-16-2003, 06:57 AM
This tutorial on the DOM might help:
http://javascriptkit.com/javatutors/dom.shtml

pyro
09-16-2003, 07:49 AM
getElementById() is the DOM compatable way to reference an object, while document.idname is IE only...