DOM

Introduction

DOM & BOM

BOM can affect the appearance of some parts of a document sometimes. The following BOM syntax is an example:

document.bgColor="#color"

Its fuller syntax indicates the relationship more clearly:

window.document.bgColor="#color"

The document has become window object here in the Browser Object Model (BOM) and so has the background color.

Next >


< Previous

[Page Top]

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

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