Name
Layer
Synopsis
document.layers[i] document.layers[layer-name] document.layer-name
Constructor
new Layer(width,parent_layer)
Description
The Layer object is supported only in Netscape 4 and was
discontinued in Netscape 6. It is entirely non-standard, but is
documented here because it provides the only way to work with
dynamically positioned objects in Netscape 4. Any HTML element with a
CSS position attribute of absolute is represented by a Layer object in
JavaScript. You can also create layers with the non-standard <layer> tag, or with the Layer( ) constructor.
Properties
aboveThe layer above this one, if any. Read-only.
backgroundThe background image of the layer.
belowThe layer below this one, if any. Read-only.
bgColorThe background color of the layer.
clip.bottomThe Y-coordinate of the bottom edge of the layer’s clipping area, relative to
top.clip.heightThe height of the layer’s clipping area. Setting this property also sets the value of
clip.bottom.clip.leftThe X-coordinate of the left edge of the layer’s clipping area, relative to
left.clip.rightThe X-coordinate of the right edge of the layer’s clipping area, relative to
left.clip.topThe Y-coordinate of the top edge of the layer’s clipping area, relative to
top.clip.widthThe width of the layer’s clipping area. Setting this property also sets the value of
clip.right.documentA read-only reference to the Document object contained within the layer.
hiddenSpecifies whether a layer is hidden or visible. Setting this property to
truehides ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access