Scroll bars

If the contents of the frame do not fit into the allotted window, scrollbars automatically appear to view the information. In some cases, the scroll bars violate the design of the web page, so they can be discarded. To control the display of the scroll bars, use the scrolling parameter . It can take two basic values: yes - always causes the scroll bars to appear, regardless of the amount of information and no - prevents them from appearing (Example 1).

Example 1. Missing scrollbars

Valid HTML
<! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Frameset // EN" "http://www.w3.org/TR/html4/frameset.dtd">
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text / html; charset = windows-1251">
<Title> Frames </ title>
</ Head>
<Frameset cols = "200, *">
<Frame src = "menu.html" name = "MENU" noresize scrolling = "no" >
<Frame src = "content.html" name = "CONTENT">
</ Frameset>
</ Html>

With the scroll bars turned off, if the information does not fit in the frame window, it will be difficult to view it. Therefore , the scrolling = "no" parameter should be used cautiously.

If the scrolling parameter is not specified , then the scroll bars are added by the browser only when necessary, when the contents of the frame exceed its visible part.

Copyright © www.htmlbook.ru