Jump to content

[SOLVED] HTML DOM question


jumpenjuhosaphat

Recommended Posts

How can it be dynamic without it changing?

 

Indeed. In light of the first question, if you want to get technical, you are using the DOM (Document Object Model) in some sense simply by generating an HTML page. However, the dynamic aspect of anything requires that something act upon that structure.

How can it be dynamic without it changing?

 

I don't get it, without what changing?

 

HTML DOM, as I understand it(which is very limited, that's why I'm asking), is a technology defined by the w3 consortium that is browser and platform independent, and doesn't depend on any other technologies to make use of it.  In other words(my understanding), it is an extension to HTML that allows your document to be dynamic.

 

So, to reiterate my question, am I understanding that correctly?

Yes, you are correct in your definition of the DOM. This page on W3Schools gives a good overview of what the DOM itself is, however, in and of itself, it does nothing. It gives you a foothold to be able to use other scripting languages to manipulate the DOM and create dynamic effects. So, if you create an HTML page, as I stated before, you are indeed using the DOM; however, this does not give you any dynamic capabilities in and of itself.

 

Javascript (and other client side scripting languages) then can make use of the DOM to alter the appearance of object on the page. It is, in fact, the scripting languages that provide the dynamic element of the page.

 

Does that help?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.