Name

SCROLLING — NN n/a IE 3 HTML 4

Synopsis

SCROLLING=auto | no | yes

Optional

By default, browsers add vertical and/or horizontal scrollbars when the content loaded into an inline frame exceeds the visible content region of the element. Scrollbars can affect the layout of some content because they occupy space normally devoted to content (that is, the frame does not expand to accommodate scrollbars). Also, due to differences in default font sizes in browsers and operating system versions, a given collection of text content may display differently in different clients. If you want to prevent scrollbars from appearing in the frame, set the SCROLLING attribute to no; if you want scrollbars to be in the frame at all times, set the attribute to yes. In the latter case, if the content does not require scrolling, the scrollbars are visible, but disabled.

Setting the SCROLLING attribute to no should be used only after you have tested on all browsers and platforms that mission-critical content is always visible in the frame. If the frame is set to not scroll, some users might not be able to see all content of the frame.

Example

<IFRAME SRC="navbar.html" SCROLLING=no></IFRAME>

Value

Case-insensitive constant values (optionally quoted): auto | no | yes.

Default

auto

Object Model Reference

IE

[window.]document.frameName.scrolling

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.