The term DOM scripting refers to programmatically accessing the Document Object Model (DOM). In common usage, DOM scripting implies JavaScript. DOM scripting has its roots in Dynamic HTML (DHTML), but is more structured. It is the third pillar[clarification needed] in the web standards movement.
DHTML vs. DOM scripting
- Traditional DHTML:
- Uses a scripting language and valid markup (HTML/XHTML/XML/etc.)
- May be browser-specific
- May require code forking[clarify]
- Is web only
- Was used with non-standardized markup
- DOM scripting: