25.15. The Layer Object

Netscape 4.0 supports layered HTML: HTML in separate, possibly overlapping regions. Layers can be defined with the LAYER or ILAYER element or through cascading style sheets; see Section 5.12, (Layers). JavaScript can access and manipulate layers; see Section 24.5 (Using JavaScript to Make Pages Dynamic) for examples. However, note that in Netscape 6, to be compliant with the HTML 4.0 specification, LAYER and ILAYER elements are no longer supported.

Constructors

new Layer(width) This constructor creates a new Layer object. You can specify its contents by setting the src property or by using the load method.

new Layer(width, parentLayer) This constructor builds a layer that is a child of the one specified.

Properties

above ...

Get Core Web Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.