# Javascript : position of cursor on image(px)

**URL:** <https://forum.kirupa.com/t/javascript-position-of-cursor-on-image-px/197730>\
**Category:** web dev\
**Created:** [August 18, 2006, 4:16pm UTC](https://forum.kirupa.com/t/javascript-position-of-cursor-on-image-px/197730 "2006-08-18T16:16:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sniper\_Jo](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Sniper\_Jo](https://forum.kirupa.com/u/Sniper_Jo)\
**Post date:** [August 18, 2006, 4:16pm UTC](https://forum.kirupa.com/t/javascript-position-of-cursor-on-image-px/197730/1 "2006-08-18T16:16:08Z")

</div>

Hi guys,

Is there a way using javascript to get the position of the cursor on an image, eg. if the cursor was at the very top left hand corner of the image it would return 0,0 ?

Thanks :sen:
