JavaScript Reference/Javascript Properties/scroll — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 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