DOM Addresses in Javascript

In Javascript, how do you retrieve DOM addresses?
Who is Participating?
HonorGodConnect With a Mentor Software EngineerCommented:
DOM = Document Object Model

In Javascript, you can access elements of the DOM using document related methods like:

var here = document.getElementById( idvalue )

The result of the "lookup" will be a value that is used to access the specified document element.

Does that help?
Michel PlungjanIT ExpertCommented:
Can you give an example of what you mean?
JCW2Author Commented:


Do you know of any other ways of retrieving DOM addresses?
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

HonorGodConnect With a Mentor Software EngineerCommented:
There are multiple document methods that return element references, but those are the only ones with which I am familiar:

For example, take a look at:
JavaScript HTML DOM Examples
JCW2Author Commented:
Thank you for your help.
HonorGodSoftware EngineerCommented:
You are very welcome.

Thanks for the grade & points.

Good luck & have a great day.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.