Answer to Question #340325 in HTML/JavaScript Web Application for Natalie

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

1
Expert's answer
2022-05-15T17:06:32-0400
 <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>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS