Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DOM Addresses in Javascript

Posted on 2011-03-09
6
Medium Priority
?
344 Views
Last Modified: 2012-05-11
In Javascript, how do you retrieve DOM addresses?
0
Comment
Question by:JCW2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 41

Assisted Solution

by:HonorGod
HonorGod earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Simple Linear Regression
Suggested Courses

636 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