HTML CSS Reference/HTML Attributes Reference/scroll

Материал из Web эксперт
Перейти к: навигация, поиск

"scroll" Example

<head><Title>Example For scroll</Title></head>
<body id="myBody">
   <button onclick="myBody.scroll="yes"">Scroll bars do appear</button>
   <button onclick="myBody.scroll="no"">Scroll bars do not appear</button>
   <button onclick="myBody.scroll="auto"">Scroll = auto</button>

scroll is applied to

| Applied_To     |<body>                          <html> (IE6 only)             |

"scroll" Syntax and Note

This attribute controls whether to show the scroll bars. 
It is a Boolean attribute.
Possible values are true, no, and auto.
true is the default value
auto means that scroll bars are shown when the page content exceeds the visible area.
<element scroll="value"> . . . </element>