JavaScript Reference/Javascript Properties/scroll
Версия от 18:30, 25 мая 2010; (обсуждение)
Содержание
"scroll" Example
<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>
"scroll" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<body> <html> (IE6 only) |
+----------------+--------------------------------------------------------------+
"scroll" Possible Values
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
"scroll" Syntax and Note
Note:
Read and write property.
Show both horizontal and vertical scroll bars.
Syntax:
document.all.elementID.scroll = value