HTML and CSS Reference
the quotes around the argument to alert are single quotes, unlike the
use either single or double quotes—it doesn't make any difference as
long as you start and end a given string with the same type of quote.
But double quotes are used in the HTML for the attribute value, so
in this section use the Document Object Model (DOM) to cause things to
happen within the page. The next section looks at the DOM more closely.
The Document Object Model (usually referred to as the DOM ) is the
it's based on an object called window . You already used the alert method
of the window object in the previous section. The window object contains
properties and methods provided by the browser, the most important
of which is the document object. The document object contains properties
and methods provided by the web page. To experiment with the docu-
ment object, create a simple web page: