Hi All,
I would like to create "go to top of the page" button. When I scroll down the page, the button should appear at right and lower corner side.
When it is clicked it should go to top of the page.
It would be very nice if you give some ideas.
Thanks,
Darma
Thanks,
Darma
Sanjeeb LenkaPosted Jun 19, 2013, 5:38 AM
$(document).ready(function(){
$("#button").click( function() { $(body).scrollTop(0);
});
});
pass the button id in place of button
or you can follow this link
http://gazpo.com/2012/02/scrolltop/
or you can do like this also
protected void btnSubmit_Click(object sender, EventArgs e)
{
Page.ClientScript.RegisterClientScriptBlock(btnSubmit.GetType(), "OnClick", "");
}