Name

visibility — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

The state of the positioned element’s visibility. Surrounding content does not close up the space left by an element whose visibility property is set to hidden.

Example

document.all.myDIV.style.visibility = "hidden"

Value

One of the constant values (as a string): hidden | inherit | visible.

Default

inherit

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.