Layer.visibility
JavaScript 1.2+ Nav4+ Syntax
layer.visibility
Description
The visibility property of the Layer object controls whether the layer is displayed or hidden. Valid values for this property are: hide, show, and inherit. This property also represents the HTML VISIBILITY attribute of the <layer> tag.
Example
Listing 7.356 shows how the visibility property is used to hide a Layer object.
Listing 7.356 Example of the visibility Property
<html> <head> <title> Using the visibility property of the Layer object</title> </head> <body> <script language="JavaScript"> <!-- Hide function hide(){ document.layer2.visibility ="hide"; } // End Hide ---> </script> <layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=200 ... |
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.