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 O’Reilly online learning.

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