DOM Addresses in Javascript

In Javascript, how do you retrieve DOM addresses?
JCW2Asked:
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?
0
 
Michel PlungjanIT ExpertCommented:
Can you give an example of what you mean?
0
 
JCW2Author Commented:
HonorGod:

Yes

Do you know of any other ways of retrieving DOM addresses?
0
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
http://www.w3schools.com/js/js_ex_dom.asp
0
 
JCW2Author Commented:
Thank you for your help.
0
 
HonorGodSoftware EngineerCommented:
You are very welcome.

Thanks for the grade & points.

Good luck & have a great day.
0
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.