How to detect current mouse coordinates using jQuery?

Posted by Editorial Staff | Updated on

Are you searching for how to detect current mouse coordinates using jQuery? You can use the jQuery event.pageX and event.pageY in combination with the jQuery offset() method to get the position of mouse pointer relative to an element.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers