Simple Scroll Back to Top Plugin Examples with demo

Today, We want to share with you Simple Scroll Back to Top Plugin.In this post we will show you back to top button javascript smooth scrolling, hear for Creating a Back to Top Button with CSS & jQuery we will give you demo and example for implement.In this post, we will learn about How to add a sticky back-to-top button to your website with an example.

Simple Scroll Back to Top Plugin

There are the Following The simple About javascript scroll to top of page Full Information With Example and source code.

Read Also:  Angular 6 Forms Validation Tutorial Example From Scratch

As I will cover this Post with live Working example to develop How To Create a Scroll Back To Top Button, so the prevent scroll to top on button click is used for this example is following below.

Step 1: HTML

This Plugin is very simple arrow which fades in when all the visitors start scrolling the Web page.back to top button javascript smooth scrolling

Read Also:  Back to Top Button using jQuery and CSS - Scroll to Top Example


<a id="backs_to_top" title="Back to top" href="#">➤</a>

Step 2: JavaScript

Scroll to top when arrow up clicked

$(window).scroll(function() {
var height = $(window).scrollTop();
if (height > 100) {
} else {
$(document).ready(function() {
$("#backs_to_top").click(function(event) {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;


Step 3: CSS

CSS Source code

#backs_to_top {
width: 40px;
line-height: 40px;
overflow: hidden;
z-index: 999;
display: none;
cursor: pointer;
-moz-transform: rotate(270deg);
-webkit-transform: rotate(270deg);
-o-transform: rotate(270deg);
-ms-transform: rotate(270deg);
transform: rotate(270deg);
position: fixed;
bottom: 50px;
right: 0;
background-color: #DDD;
color: #555;
text-align: center;
font-size: 30px;
text-decoration: none;
#backs_to_top:hover {
background-color: #3d3d3d;
color: #000;

Web Programming Tutorials Example with Demo

Read :

Read Also:  jQuery Back to top


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about scroll to top button bootstrap.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  Responsive back to top using jquery
  2. Read Also:  How to remove the first character of a string in JavaScript?
  3. Read Also:  Remove undefined value from jquery array
  4. Read Also:  bootstrap vertical carousel slider with jQuery Example
  5. Read Also:  Smooth Scroll to Top with jQuery
  6. Read Also:  PHP Send Email using SMTP Authentication
  7. Read Also:  Simple Jquery Scroll To Top Example
  8. Read Also:  sticky Scroll Back to Top Button using jQuery and CSS
  9. Read Also:  jQuery An Animated Scroll To Top Button
  10. Read Also:  Ajax Upload Multiple Images without form submitting