JavaScript Reference/Javascript Properties/scroll
Содержание
"scroll" Example
<source lang="javascript">
<html> <body id="myBody" bgcolor="white" text="#000000"> <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> </body> </html>
</source>
"scroll" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<body> <html> (IE6 only) | +----------------+--------------------------------------------------------------+
</source>
"scroll" Possible Values
<source lang="javascript">
Possible Values yes scroll bars appear regardless of the size of the document no scroll bars do not appear auto scroll bars appear when necessary
</source>
"scroll" Syntax and Note
<source lang="javascript">
Note: Read and write property. Show both horizontal and vertical scroll bars.
Syntax:
document.all.elementID.scroll = value
</source>