Solved

DOM Addresses in Javascript

Posted on 2011-03-09
6
336 Views
Last Modified: 2012-05-11
In Javascript, how do you retrieve DOM addresses?
0
Comment
Question by:JCW2
  • 3
  • 2
6 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35091067
Can you give an example of what you mean?
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 35093928
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
 

Author Comment

by:JCW2
ID: 35097665
HonorGod:

Yes

Do you know of any other ways of retrieving DOM addresses?
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 41

Assisted Solution

by:HonorGod
HonorGod earned 500 total points
ID: 35097821
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
 

Author Closing Comment

by:JCW2
ID: 35101216
Thank you for your help.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 35107831
You are very welcome.

Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to count occurrences of each item in an array.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now