1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
---|
2 | "http://www.w3.org/TR/html4/strict.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
---|
6 | <title>3860</title> |
---|
7 | <style type="text/css" media="screen"> |
---|
8 | #spacer { height: 1000px; } |
---|
9 | </style> |
---|
10 | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.js" type="text/javascript" charset="utf-8"></script> |
---|
11 | <script type="text/javascript" charset="utf-8"> |
---|
12 | $(document).ready(function(){ |
---|
13 | $(':button').bind('click', function(event) { |
---|
14 | $(document).scrollTop(10); |
---|
15 | alert($(document).scrollTop()); |
---|
16 | }); |
---|
17 | }); |
---|
18 | </script> |
---|
19 | </head> |
---|
20 | <body> |
---|
21 | <h1>Testing 3860</h1> |
---|
22 | <input type="button" value="scrollTop"> |
---|
23 | <div id="spacer"></div> |
---|
24 | </body> |
---|
25 | </html> |
---|