Solved

What does it mean by "Document" in javascript?

Posted on 2011-02-13
6
388 Views
Last Modified: 2012-05-11
What is the significance of "Document" in javascript? is this an object ? i have see it has been several places !! is there any reason that it has been called as "document" ?
0
Comment
Question by:PeteEngineer
[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
6 Comments
 
LVL 8

Accepted Solution

by:
dmeeren earned 100 total points
ID: 34882128
I use document.write to print something to the screen or alert box. So i think it is a command to write something. I never bothered to find out the exact meaning, i just ise it. Is i think a bit more, you can see a html page as an html document.
0
 
LVL 3

Assisted Solution

by:sniper038
sniper038 earned 100 total points
ID: 34882130
yes it is the main object of a HTML page. It has some properties as well as other objects and events.
see http://www.comptechdoc.org/independent/web/cgi/javamanual/javadocument.html
and http://www.javascriptkit.com/jsref/document.shtml
for more info.
And regarding the naming, I think that it's because that javascript is copying some names from other languages like java. this might be the reason! anyhow it's not a big deal I think.
0
 
LVL 29

Assisted Solution

by:Olaf Doschke
Olaf Doschke earned 100 total points
ID: 34882369
Don't know why they called it document, but it's simply the root object of the html page the browser currently displays. The root object of a tree of object nodes representing the html elements and other document properties.

Bye, Olaf.
0
Interactive Way of Training for the AWS CSA Exam

An interactive way of learning that will help you visualize core concepts so that you can be more effective when taking your AWS certification exam.  Built for students by a student to help them understand the concepts that they are being taught.

 
LVL 29

Assisted Solution

by:Badotz
Badotz earned 200 total points
ID: 34882790
Visit  http://www.sislands.com/coin70/week1/dom.htm  to get a better understanding of this.
0
 
LVL 29

Assisted Solution

by:Badotz
Badotz earned 200 total points
ID: 34882799
JavaScript Object Hierarchy
0
 
LVL 29

Expert Comment

by:Badotz
ID: 34951996
The strong, silent type, eh?

No worries - glad to help.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

630 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