Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Frame/IFrame scrolling property

Frame/IFrame scrolling property

Frame/IFrame Object Reference Frame/IFrame Object


Definition and Usage

The scrolling property can set or return the value of the scrolling attribute of the frame/iframe element.

The scrolling attribute specifies whether the frame/iframe displays scrollbars.

frameObject.scrolling=

value

or

iframeObject.scrolling=

value

The scrolling property can be one of the following values:

Value Description
auto Scrollbars are displayed automatically based on the document size (default).
yes Scrollbars are always displayed
no Scrollbars are never displayed

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the scrolling property


Example

Example

Return and set the value of the scrolling property:

Runoob Tutorial(runoob.com)

The value of the scrolling property is:

IE, Google Chrome, Opera, and Safari may have issues when setting scrollbars.

Try it »


Frame/IFrame Object Reference Frame/IFrame Object