Sets or retrieves how to manage the content of the object when the content exceeds the height of the object.
Syntax
HTML { overflow-y: sOverflow } Scripting object.style.overflowY [ = sOverflow ]
Possible Values
sOverflow String that specifies one of the following values:
visible Content is not clipped, and scroll bars are not added. Elements are clipped to the size of the containing window or frame. scroll Content is clipped, and scroll bars are added even if the content does not exceed the dimensions of the object. hidden Content that exceeds the dimensions of the object is not shown. auto Content is clipped, and scrolling is added only when necessary. The property is read/write with a default value of visible; the proposed cascading style sheets (CSS) extension attribute is not inherited.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
Remarks
For the TEXTAREA object, only the hidden value is valid. Setting the property to hidden on a TEXTAREA object hides its scroll bars.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, CENTER, CITE, CODE, currentStyle, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, I, IFRAME, INS, KBD, LABEL, LEGEND, LI, LISTING, MENU, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
See Also