scrollTo alternative
scrollTo alternative
I have a div that is larger than the window. I want to move the scrollbar without triggering a scroll event.
So basically i want to achieve the following without triggering a scroll event:
-
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Test</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
window.scrollTo(1000, 0);
});
</script>
<body>
<div id="bckgr" style="background-color:green; width:3000px; height:100px;"></div>
</body>
</html>
Can anyone think of a solution?
That be great, thank you!