Layer.moveAbove()

JavaScript 1.2+ Nav4+ Syntax

							layer.moveAbove(layername)

Description

The moveAbove() method of the Layer object is used to move the current layer above another specified layer. The parameter, layername, is the layer object that gets moved to the back.

Example

Listing 7.334 an example of how the moveAbove() method is used. When the button is clicked, the onClick event handler handles the CLICK event and moves Layer1 above Layer2.

Listing 7.334 Example of the moveAbove() Method
 <html> <head> <title> Using the moveAbove method of the Layer object</title> </head> <body> <layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=150 VISIBILITY="show"> <center>Layer 1</center> </layer> <layer id="layer2" ...

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.