![]() ![]() It returns a numeric value that specifies the horizontal position of the cursor. Example The example used below shows the mouse co-ordinates as you move the mouse over the grey block labelled 'MOUSE CAPTURE AREA'. The event.clientX property is used to find out the value of the horizontal position or the X-coordinate of the cursor where the event was triggered. jQuery’s mousemove function can be used to track the mouse x and y co-ordinates either for an entire document or just when mousing over a particular element. Normalized CSS This fiddle has previously unsaved changes. JavaScript provides us with two different properties to get the coordinates of the mouse cursor when the mouse button is pressed anywhere on the screen − jQuery UI 1.12.1 jQuery UI 1.8.5 jQuery UI 1.8.9 Framework
0 Comments
Leave a Reply. |