Get the scroll top of a div in asp.net
I have a webpage that has Horizontal Y and vertical X scroll bars I use a JavaScript to stop the screen resetting when the user scrolls down to the bottom of the screen. Show How do i stop the resetting when the user scrolls to the right? In many websites having long contents we have seen a "Back To Top" or "Scroll To Top" button when a click takes you to the top of the webpage. We see this kind of feature normally on the product listing pages of e-Commerce websites. Today in this article we will implement the same feature in one of the easiest possible ways. To integrate this feature, we need a little HTML, some CSS for styling and a couple of lines of jQuery code. Using the following method, you can integrate the “Back To Top” feature on your website irrespective of the programming language of your website, be it ASP.NET or PHP. To start with, we will create a HTML page with the following content in the section.
|