
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Scroll to the Top of the Page Using JavaScript and jQuery
Example
<html> <body> <script> $("a").click(function() { $("html, body").animate({ scrollTop: 0 }, "slow"); return false; }); </script> <h3>TOP OF PAGE</h3> <br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text.<br> This is demo text. <br> <h3>BOTTOM OF PAGE</h3> <a href="#">Scroll up</a> </body> </html>
Advertisements