Here is the simple example to scroll to the bottom of the page with jQuery.
HTML code
<!DOCTYPE html>
<html>
<head>
<script
src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"></script>
<meta charset="utf-8">
<title>Scroll to the top of the page jQuery</title>
</head>
<body>
<button id="bottom">Go to Bottom</button>
<h1>Latest Apps</h1>
<p>Facebook</p>
<p>Insatgram</p>
<p>Snapchat</p>
<p>Hike</p>
<p>Messenger</p>
<p>Tinder</p>
<p>TIK TOK</p>
<p>LIKE</p>
<p>Candy Crush</p>
<p>Temple Run</p>
<p>Vigo</p>
<p>Youtube</p>
<p>Gmail</p>
<p>Crome</p>
<p>Play Store</p>
<p>LinkedIn</p>
<p>PUBG</p>
<p>FreeFire</p>
<p>Counter Strike</p>
<p>GTA Vice City</p>
<p>Gaana</p>
<p>Spotify</p>
<p>Zomato</p>
<p>Uber</p>
<p>Mini Militia</p>
<p>Telegram</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<p>etc...</p>
<script>
// Add jQuery Code here
</script>
</body>
</html>
jQuery
$("#bottom").click(function() {
$("html, body").animate({ scrollTop: $(document).height() }, "slow");
return false;
});
Also read: Scroll to top of the page using jQuery
There is a reason big-name companies like CNN use WordPress. WordPress is a popular content…
In this tutorial, I'm going to show you how to install MySQL on your computer.…
Download Turbo C++ for windows 10 in just 7 Mb and run your first C++…
We can redirect any webpage to any other or redirect the whole domain or website…
There are lots of methods to redirect pages, like refresh-redirect from META tag, redirect from…
Include files in PHP are used in appending various global or config files. We can…