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

জাভাস্ক্রিপ্টে screenX মাউস ইভেন্টের ভূমিকা কী?

ইভেন্ট ট্রিগার হলে screenX মাউস ইভেন্ট মাউস পয়েন্টারের হরিজেন্টাল কো-অর্ডিনেট রিটার্ন করে।

উদাহরণ

<!DOCTYPE html> <html>    <body>       <p onclick = "coordsFunc(event)">Click here to get the x (horizontal) and y (vertical) coordinates of the mouse pointer.</p>       <script>          function coordsFunc(event) {             var x_coord = event.screenX;             var y_coord = event.screenY;             var xycoords = "X coords= " + x_coord + ", Y coords= " + y_coord;             document.write(xycoords);          }       </script>    </body> </html>
  1. জাভাস্ক্রিপ্টে কীবোর্ড ইভেন্ট shiftKey প্রপার্টির ভূমিকা কী?

  2. জাভাস্ক্রিপ্টে shiftKey মাউস ইভেন্টের ভূমিকা কী?

  3. জাভাস্ক্রিপ্টে screenY মাউস ইভেন্টের ভূমিকা কী?

  4. জাভাস্ক্রিপ্টে কীবোর্ড ইভেন্ট altKey প্রপার্টির ভূমিকা কী?