Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 13th, 2006, 07:03 PM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How this HTML DOM established?

Hi friends!

I am a novice in JavaScript and these days have been reading Danny Goodman's JavaScript Bible(5th Edition). Yesterday while I was going through the section The Document Object Model in Chapter 4, I had a little problem with understanding the HTML DOM established in the book.

In Danny's book, he says the DOM of an empty document in a browser window looks like this: the top node of the entire hierarchy tree is "Window" object; and "Navigator", "Screen", "Document", "History" and "Location" objects are all at the second hierarchy class. Like this:

Window
0„2|-----Navigator
0„2|-----Screen
0„2|-----Document
0„2|-----History
0„2|-----Location

I don't understand the relationship of these objects. Why is "Window" treated as the top of the whole tree? And why are "Screen", "Navigator" treated as its children?

In my personal opinion, I guess the following model is also acceptable:
Screen
0„2|----Navigator
    Â0„20„20„2|----Window
            Â0„2|----Document
            Â0„2|----History
            Â0„2|----Location
I think: "Screen" object corresponds to the monitor screen(the physical environment) as explained in the book. It surely contains a "Navigator", which should be a child of "Screen". And a "Navigator" of course contains a window or more, so "Window" should be the child of "Navigator". Then each window in a browser maintains its own current HTML document("Document"), access history("History") and the current URL("Location").

So could someone help me with this DOM question?
Thank you all!
-----------------------------------------------------------------
You'll pay everything back sooner or later if you have owed them.
 
Old April 16th, 2006, 02:00 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

:(Nobody replies?

You'll pay everything back sooner or later if you have owed them.





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML DOM - clone form element could not be aligned Shibu Javascript 5 November 15th, 2008 11:24 PM
DOM Perseus Java Basics 3 May 4th, 2006 08:50 AM
put part of html in string DOM Dj Kat Javascript How-To 3 February 22nd, 2006 04:28 AM
Connection coudn't be established to the local hos rraguraman JSP Basics 1 February 13th, 2005 01:42 PM
Runtime error 40006 - After connection established mynameisbill2 Beginning VB 6 1 November 29th, 2003 05:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.