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

জাভাস্ক্রিপ্টে ক্লিক ইভেন্টে ফাংশন কল করা

জাভাস্ক্রিপ্টে বাটনে ক্লিক করলে ফাংশন কল করতে onclick ব্যবহার করুন। নিচের কোডটি চালিয়ে জাভাস্ক্রিপ্টে onclick ইভেন্টে ফাংশন কল শিখুন।

উদাহরণ

<html>    <head>       <script>          function sayHello() {             document.write ("Hello there!");          }       </script>    </head>    <body>       <p>Click the following button to call the function</p>       <form>          <input type = "button" onclick = "sayHello()" value = "Say Hello">       </form>       <p>Use different text in write method and then try...</p>    </body> </html>

  1. ফায়ারফক্সে জাভাস্ক্রিপ্ট ডিজেবল করার পদ্ধতি

  2. ফায়ারফক্সে জাভাস্ক্রিপ্ট এনেবল করার পদ্ধতি

  3. ক্লিক ইভেন্টে জাভাস্ক্রিপ্ট ফাংশন কল করার পদ্ধতি

  4. জাভাস্ক্রিপ্ট Function call() মেথড