<iframe src="" scrolling="">

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

The scrolling attribute of the IFRAME element specifies whether or not to display the scrollbars.


<iframe src="example.html" scrolling="no"></iframe>

Attribute Value Explanation
scrolling=" " yes scrollbars are displayed
no scrollbars are not displayed
auto displays scrollbars as needed (default)

Example


<p>
Scroll bar is displayed
<br>
<iframe src="iexample_b.html" width="300" height="100" scrolling="yes">Alternate content</iframe>
</p>

<p>
Scroll bar is not displayed
<br>
<iframe src="iexample_b.html" width="300" height="100" scrolling="no">Alternate content</iframe>
</p>

Output

Scroll bar is displayed

Scroll bar is not displayed