Name

VISIBILITY — NN 4 IE n/a HTML n/a

Synopsis

VISIBILITY=”visibilityConstant"

Optional

Determines whether Navigator displays the LAYER element. The default behavior is for a layer to inherit the VISIBILITY attribute of its next outermost (parent) layer. For a LAYER element that is part of the basic document body, this means that the layer is seen by default (the base layer is always visible). To hide a layer when the page loads, set the VISIBILITY attribute to "hidden". You need set the attribute to "show" only if the LAYER element is nested within another LAYER (or ILAYER) whose VISIBILITY value is set to (or is inherited as) "hidden".

Example

<LAYER BGCOLOR="yellow" SRC="instrux.html" WIDTH=200 HEIGHT=300 
PAGEX=50 PAGEY=350 VISIBILITY="hidden">
</LAYER>

Value

One of the accepted constants: hidden | inherit | visible

Default

inherit

Object Model Reference

NN

[window.]document.layerName.visibility

Get Dynamic HTML: The Definitive Reference 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.