Question #340325

Create a link button at the top of the webpage that would make it jump to the bottom of the webpage when clicked

Expert's answer

 <html>
<head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
    <button class="go-down" title="Down" id='OnBottom'>Down</button>   
</body>
</html>



<script type="text/javascript">


$(function(){
 $("#OnBottom").click(function(){$("html,body").animate({scrollTop:$(document).height()},"slow")})
});
</script>
LATEST TUTORIALS
APPROVED BY CLIENTS