Jump on top of page after jquery ajax call?
I am in the lower section of a long html page. I press a button that does
an ajax call.
When the call to the server returns I want to "jump" or scroll up to the
top of the page. How can I do this?
I tried:
window.scrollTo(0,0) and $(window).scrollTop(0); inside my JQuery function
but neither works.
Note:
I do not need animation
I do not need the user to press any a href link
No comments:
Post a Comment