DOM

Methods

DOM Style Syntax

They are not the same, however. BOM and DOM are different:

BOM window.document.bgColor="#ffffff";
 
DOM document.getElementById("id").style.backgroundColor="#ffffff";
 

They may resemble each other somewhat. They may produce the same effect in these examples. Different they are, nevertheless: DOM and BOM.

Next >


< Previous

[Page Top]

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

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