Frame/IFrame scrolling property
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





All major browsers support the scrolling property
Example
Example
Return and set the value of the scrolling property:
The value of the scrolling property is:
IE, Google Chrome, Opera, and Safari may have issues when setting scrollbars.
Try it »
Frame/IFrame Object