Layer

JavaScript 1.2+ Nav4+ Syntax

Core client-side JavaScript object.

Description

The Layer object represents an object that contains a single document. A document can contain multiple layers, and thereby contain multiple documents. Layers are useful for displaying graphics which overlay each other within a browser. The Layer object has specific properties and methods associated with it, as shown in Table 7.32.

Table 7.32. Properties and Methods of the Layer Object
Property/Method Description
above Specifies the layer above
background Refers to the background image of the layer
below Specifies the layer below
bgColor Refers to the background color of the layer
captureEvents() Specifies the event types to capture
clip.bottom ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.