DOM

Methods

Coordination of Standards

Compare these, for instance:

DOMstyle.textDecoration="underline";
CSSstyle="text-decoration:underline;"
DOMstyle.backgroundColor="#ffffcc";
CSSstyle="background-color:#ffffcc;"
DOMstyle.display="none";
CSSstyle="display:none;"
DOMstyle.color="#0000ff";
CSSstyle="color:#0000ff;"
etc.

The same logic is applied whenever we wish to adapt a CSS spec for scripting with DOM.

Next >


< Previous

[Page Top]

Introduction to DOM, by Dr Sam
copyright | contact
published by OxfordU.net

[An alternative, straight-text version is also available.]

Web-Design Tutorials by Dr Sam