In this tutorial, I’ll show you how to add a “Scroll to Top” button with CSS and jQuery to your (html/asp.net/wordpress) website. Before we get started, if you need to Download Crystal Report Developer for VS 2019, please go through the following article: Crystal Reports for Visual Studio 2019.

Introduction

This light-weight approach will enhance usability with a “Scroll to Top” or “Back to Top” button will be handled by native CSS3 properties. I am going to assume that you already have hooked jQuery up to your site. The JavaScript should be called below your jQuery script tag to ensure you don’t get an ‘undefined jQuery’ error in your console. I cannot guarantee support for old browsers such as Internet Explorer 10 and below.

Step 1: Add or copy the JavaScript at your website page
Step 2: Add the styles for the back to top button

 

Step 3: Add the Code for caller button

Thanks in advance for Sharing…

Scroll to Top Button for your asp.net project

Leave a Comment