
Client-side JavaScript
|
33
IE 4 DOM
Microsoft’s Internet Explorer Version 4 extended the leg-
acy DOM with powerful new features for accessing and
modifying all content of a document. These features were
never standardized, but some of them are supported in
non-Microsoft browsers.
The following sections explain each of these DOMs in more
detail and describe how you can use them to access and
modify document content.
The Legacy DOM
The original client-side JavaScript DOM defines provides
access to document content through properties of the Docu-
ment object. Several read-only properties, such as
title, URL,
and
lastModified provide information about the document
as a whole. See the reference section for further details on
these and all Document properties and methods. Other
properties are arrays that refer to specific types of document
content:
forms[]
An array of Form objects representing the forms in a
document.
images[]
An array of Image objects representing the images that
appear in a document.
applets[]
An array of objects that represent the Java applets
embedded in a document. JavaScript can actually be
used to script Java and control these applets, but doing
so is beyond the scope of this pocket reference.
links[]
An array of Link objects representing the hyperlinks in
the document.