Solved

What does it mean by "Document" in javascript?

Posted on 2011-02-13
6
366 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
6 Comments
 
LVL 8

Accepted Solution

by:
dmeeren earned 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 29

Assisted Solution

by:Badotz
Badotz earned 200 total points
Comment Utility
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
Comment Utility
JavaScript Object Hierarchy
0
 
LVL 29

Expert Comment

by:Badotz
Comment Utility
The strong, silent type, eh?

No worries - glad to help.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now