Solved

What does it mean by "Document" in javascript?

Posted on 2011-02-13
6
382 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

749 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