Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> JavaScript

JavaScript में screenY माउस इवेंट की भूमिका क्या है?

अवलोकन

screenY माउस इवेंट प्रॉपर्टी माउस पॉइंटर का लंबवत निर्देशांक (स्क्रीन के सापेक्ष) लौटाती है।

उदाहरण

<!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. - JavaScript में shiftKey माउस इवेंट की भूमिका क्या है?

    अवलोकनshiftKey माउस इवेंट प्रॉपर्टी बताती है कि माउस क्लिक के समय SHIFT कुंजी दबाई गई थी या नहीं।उदाहरण<!DOCTYPE html> <html>    <body onmousedown = "funcShiftKey(event)">       <div>Press and hold SHIFT key and then click here.</div>

  1. - JavaScript में screenX माउस इवेंट की भूमिका क्या है?

    अवलोकनscreenX माउस इवेंट प्रॉपर्टी माउस पॉइंटर का क्षैतिज निर्देशांक (स्क्रीन के सापेक्ष) लौटाती है।उदाहरण<!DOCTYPE html> <html>    <body>       <p onclick = "coordsFunc(event)">Click here to get the x (horizontal) and y (vertical) coordinat

  1. - JavaScript में कीबोर्ड इवेंट altKey प्रॉपर्टी की भूमिका क्या है?

    अवलोकनaltKey प्रॉपर्टी बताती है कि कीबोर्ड इवेंट ट्रिगर होने पर ALT कुंजी दबाई गई थी या नहीं।उदाहरण<!DOCTYPE html> <html>    <body>       <input type = "text" onkeydown = "funcAltKey(event)">       <div id = "