Solved

DOM Addresses in Javascript

Posted on 2011-03-09
6
341 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 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 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