Monthly Archives: July 2010
Find mouse pointer position using JavaScript
Sometimes we need to know the mouse cursor position to perform a certain action at that place. For example, I need to show up a popup div near the mouse cursor position when user click over a particular field/link. You can get the mouse cursor position using following codes: function getCursorPosition(e) { e = e…