Mobile-Web-App
Sunday, August 19, 2012
Force page scroll to top once page loaded
To force the web page scroll to top, you can call window.scrollTo(0, 1). In order to make it happen when page load, modify <body>:
<body onload="window.scrollTo(0, 1);">
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment