Pages

Monday, October 21, 2013

Return to top in page using jquery

$("html, body").animate({ scrollTop: 0 }, 200);
 
use this jquery code in onclick event. it's working like a charm. This 
is the simplest code for return to top in page. It is also working if 
you are using AJAX and calling from AJAX part.
 
If it's help you, comment it and share it.
 
 
 

No comments:

Post a Comment