English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete List of HTML Tags

HTML: <frame> scrolling attribute

The scrolling attribute specifies whether to display a scrollbar in the <frame>. By default, if the content is larger than the <frame>, the scrollbar is displayed in the <frame>.

 HTML <frame> tag

Online Example

Frame A should always display the scrollbar:

<frameset cols="50%,50%">
  <frame src="frame_a.htm" scrolling="yes">
  <frame src="frame_b.htm">
</frameset>
Test See ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Internet Explorer 8 and earlier versions, Firefox, Opera all support the scrolling attribute.

Note:Internet Explorer 9 and later versions no longer support the scrolling attribute.

Definition and Usage

HTML5 The <frame> tag is not supported.

The scrolling attribute specifies whether to display a scrollbar within <frame>.


By default, if the content is greater than <frame>, the scrollbar is displayed within <frame>.

Syntax

<frame scrolling="auto|yes|no">

Attribute Value

ValueDescription
autoDisplay scrollbars when needed (default).
yesAlways display scrollbars (even if not needed).
noNever display scrollbars (even if needed).
 HTML <frame> tag