|
I was wondering if people had any views as to what the advantage of using the DOM objects, ie getElementById, createElement, createTextNode etc were over just using document.write('tag') DHTML commands are.
Simplisitcally I would think that the use of the DOM mechanism will abstract authors from change in syntax of the HTML/DHTML/XHTML tags - because they would invoke the same methods irrespective of the underlying page technology?
Is this a true assumption?
Are there any others?
I guess the downside of DOM at the moment may be perceived to be cross browser adoption/implementation?
Thoughts?
|