jquery - How to scroll browser view port to top of page after an ajax submit? -


I have an upload form - after submitting a user form, I want to scroll the window back to the top of the page (Where I display some help text). How do I scroll the window correctly on top of the page?

You can use the scrolling method to do this on the Window object:

< Pre- window.scroll (0,0)

There is a horizontal and vertical solution to scroll within the logic window, so 0,0 brings it back to the top.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -