|
Posted by Rik Wasmus on March 15, 2008, 1:36 pm
Please log in for more thread options
> I spent a day getting to know JavaScript (already know C/C++),
> which was not difficult.
Which makes your question more suited to comp.lang.javascript.
Crossposted/f'upped to there.
> However, getting my head around the
> DOM is another matter. I have been looking for a CliffsNote
> version of how the DOM works, and all of the P/M/E's, but so
> far all I have found are: long winded specifications (no time),
> web pages that are not really focused on my needs, and would
> take a lot of effort to print, and come-ons for books. Anyone
> know of some good candidates?
>
> While I'm at it, I have a few questions about the DOM for
> HTML. Hope someone can help, or direct me to a news group
> better suited.
>
> 1. My understanding is that the Window is the parent or root
> level of the tree. Correct? Most of what I have seen on
> the web starts at the document level
Afaik, yes. Usually the 'window.' start can be ommitted though. (Formally
you'd use window.document.someThing, however you can use
document.someThing directly without problems.)
> 2. The Window level has objects regarding the browser history,
> browser in use, the current link, etc?
history: check
current url: check
browser in use: depends, don't rely on it / don't care about it. Heavily
favor checking for (the existance of) needed features instead of sniffinf
browsers.
> 3. Frames are also at the window level, not the document?
Guess so.
Not really helpfull from my side, my javascript is really rusty, but
probably you get a more authorative/complete answer in c.l.javascript.
--
Rik Wasmus
|