displaydisplay*
*Contents  *Index  *Topic Contents
*Previous Topic: disabled
*Next Topic: domain

display

Sets or retrieves whether an element is rendered.

Syntax

object.style.display[ = display]

Remarks

If this property is set to none, the element is not rendered. If it is set to block, inline, or list-item, the element is rendered. The default is to render the element.

Values for block, inline, and list-item are not supported explicitly but are useful in setting the display property to be on. In contrast to the visibility property, display=none reserves no space for the element on the screen.

Although you can apply the display property to parts of a table (such as a TR or TD element), changing the property has no effect on those parts. However, you can dynamically control the rendering of the entire table by applying the property to the TABLE element.

This property has read/write permission.

Applies To

HTML Tags BODY, DIV, IFRAME, IMG, INPUT, INPUT type=button, MARQUEE, SELECT, SPAN, TABLE, TEXTAREA
Scripting style

CSS Attribute

display


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.