SyntaxFix
Write A Post
Hire A Developer
Questions
You can do this using jQuery's .scrollTop() and .offset() method
.scrollTop()
.offset()
Check out my sample and this jsFiddle Demonstration
$(function() { $(document).scrollTop( $("#header").offset().top ); });