JavaScript Reference/Event Handlers Reference/onScroll
Содержание
"onScroll" Example
<html>
<body onscroll="alert("The user is scrolling the document")">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
Reduce the size of your browser to see a scroll bar
</body>
</html>
"onScroll" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<applet> <bdo> |
| |<body> <custom> |
| |<div> <embed> |
| |<map> <marquee> |
| |<object> <table> |
| |<td> <textarea> |
| |<th> window |
+----------------+--------------------------------------------------------------+
"onScroll" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |clientX clientY |
| |ctrlLeft offsetX |
| |offsetY screenX |
| |screenY shiftLeft |
| |srcElement type |
| |x y |
+----------------+--------------------------------------------------------------+
"onScroll" Syntax and Note
Note:
This event fires when moving the scroll object bar.