DOM scripting

From Seo Wiki - Search Engine Optimization and Programming Languages
Jump to navigationJump to search

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 in the web standards movement.

It has been suggested[by whom?] that DOM scripting is really no different from DHTML: they are both accomplished by the same means and use the same tools. This suggestion holds that the creators of DOM scripting simply wanted a way to distinguish between what they saw as a "bad" style of implementing a dynamic web page and what they saw as a "good" style of implementation. Thus, they named the "bad" style DHTML, and the "good" style DOM scripting. In practice there is no difference between the two, because any software development paradigm can create both "good" and "bad" code simultaneously.

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
  • Is web only
  • Was used with non-standardized markup
DOM scripting:
  • Uses a scripting language and valid markup (HTML/XHTML/XML/etc.)
  • Can be used with any programming/scripting language
  • Aims to be browser independent, is browser independent among standards-compliant browsers
  • Is web only
  • May degrade gracefully

External links

If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...