Solved

DOM Addresses in Javascript

Posted on 2011-03-09
6
338 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

778 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