how to do click button and go for top of the page code example
Example: scroll to top
$("#scroll_icon").click(function()
{
jQuery('html,body').animate({scrollTop:0},2000);
})
$("#scroll_icon").click(function()
{
jQuery('html,body').animate({scrollTop:0},2000);
})