কম্পিউটার টিউটোরিয়াল

জাভাস্ক্রিপ্ট/জেকোয়ারি ব্যবহার করে পেজের শীর্ষে স্ক্রোল করার পদ্ধতি?


উদাহরণ

Live Demo

<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>       <h3>BOTTOM OF PAGE</h3>       <a href="#">Scroll up</a>    </body> </html>

  1. জাভাস্ক্রিপ্ট এবং SVG দিয়ে স্ক্রলে ড্র করা

  2. জাভাস্ক্রিপ্ট দিয়ে পেরেন্ট এলিমেন্টের চাইল্ড এলিমেন্ট পাওয়া

  3. JavaScript-এ শুধু বর্তমান বছর (Current Year) দেখানোর পদ্ধতি (getFullYear)

  4. অ্যান্ড্রয়েডে যেকোনো পেজের শীর্ষ বা তল দ্রুত স্ক্রোল করার উপায়