Name

Layer — an independent layer in a DHTML document

Availability

Client-side Navigator 4

Synopsis

document.layers[i]

Constructor

new Layer(width, parent)

Properties

above

The layer above this one.

background

The background image of a layer.

below

The layer below this one.

bgColor

The background color of a layer.

clip.bottom

The bottom of the layer’s clipping region.

clip.height

The height of the layer’s clipping region.

clip.left

The left edge of the layer’s clipping region.

clip.right

The right edge of the layer’s clipping region.

clip.top

The top of the layer’s clipping region.

clip.width

The width of the layer’s clipping region.

document

The Document object of a layer.

hidden

Whether a layer is hidden. Navigator 4; deprecated; use Layer.visibility instead.

layers[]

The layers contained within a layer. Navigator 4; deprecated; use Layer.document.layers instead.

left

The X coordinate of a layer.

name

The name of a layer. Client-side Navigator 4.

pageX

The X coordinate of a layer, relative to the page.

pageY

The Y coordinate of a layer, relative to the page.

parentLayer

The parent of the layer.

siblingAbove

The sibling layer above this one.

siblingBelow

The sibling layer below this one.

src

The source URL of a layer’s content.

top

The Y coordinate of a layer.

visibility

Whether a layer is visible.

window

The window that contains a layer.

x

The X coordinate of a layer.

y

The Y coordinate of a layer.

zIndex

Stacking order of a layer.

Methods

captureEvents(eventmask)

Specify event types to be captured.

handleEvent(event)

Pass an event to ...

Get Webmaster in a Nutshell, Second Edition 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.