Name

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

Synopsis

Read/Write

The state of the positioned element’s visibility. Surrounding content does not close the space left by an element whose visibility property is set to hide (or the CSS version, hidden). If you set the property to the CSS syntax values (hidden | visible), they are converted internally to the JavaScript versions and returned from the property in that format.

Example

document.myIlayer.visibility = "hide"

Value

One of the constant values (as a string): hide | inherit | show.

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.