Contents Index Topic Contents | ||
Previous Topic: verticalAlign Next Topic: vLink |
visibility
Description
Sets or retrieves whether the content of the element is displayed.
Syntax
object.style.visibility[ = visibility]
Remarks
Unlike display:none, elements that are not visible still reserve the same physical space in the content layout as they would if they were visible. Changing the visibility through scripting is useful for showing and hiding content based on user interaction. Note that for a child element to be visible, the parent element must also be visible. See Dynamic Styles for document style scripting information.
The property has read/write permission.
Applies To
HTML Tags A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HR, HTML, I, IFRAME, IMG, INPUT, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP Scripting style CSS Attribute
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.