Click to See Complete Forum and Search --> : How "DOM objects" become available in page ?


manishrathi
07-25-2009, 12:40 PM
How do DOM objects get loaded ?
document, window, textarea, object etc ?
If I want to use java objects, I need to install jdk and import java classes in a program. But I dont install any development kit for HTML or DOM objects , nor do I import any HTML or DOM classes. So how do these objects become available for use in html page ? How do they get installed and how do they become available for use in html page ?

Are they installed with the operating system ? When a browser is installed, all these objects get loaded with it ?

When we name give any document .html extension, at that time do these objects automatically become available for use in that document ?

Pls explain.

thanks

1DayTutoring
07-27-2009, 04:14 PM
They are part of the browser capability so you do not need to load anything and are available as soon as the web browser is done downloading all the elements of a web page.
The DOM tree structure can be then accessed by say Javascript and allow you to access properties, methods and modify or create new elements in the DOM tree.

Kuriyama
07-27-2009, 04:16 PM
How do DOM objects get loaded ?
document, window, textarea, object etc ?
If I want to use java objects, I need to install jdk and import java classes in a program. But I dont install any development kit for HTML or DOM objects , nor do I import any HTML or DOM classes. So how do these objects become available for use in html page ? How do they get installed and how do they become available for use in html page ?

Are they installed with the operating system ? When a browser is installed, all these objects get loaded with it ?

When we name give any document .html extension, at that time do these objects automatically become available for use in that document ?

Pls explain.

thanks

I believe the only way you can execute java programs in a clients browser is via applets. Java and JavaScript are 2 very different things.