Layer.siblingAbove

JavaScript 1.2+ Nav4+ Syntax

							layer.siblingAbove

Description

The siblingAbove property of the Layer object refers to the sibling layer immediately above the current layer in the zIndex. If this doesn't exist, null is returned.

Note

Any child of a parent layer is considered a sibling.

Example

Listing 7.352 shows how to get the siblingAbove property value. When the button is clicked, the siblingAbove value is displayed.

Listing 7.352 Example of the siblingAbove Property
<html>
<head>
<title> Using siblingAbove property of the Layer object</title>
</head>
<body>
							 <layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=200 VISIBILITY="show"> <center>Layer 1</center> </layer> <layer id="layer2" width=150 ...

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.