Suppose the event is e
. How to know where it happened (as in position)?
I'm also using jQuery.
Suppose the event is e
. How to know where it happened (as in position)?
I'm also using jQuery.
I think you're looking for e.pageX
and e.pageY
:
$('#something').click(function(e) {
alert('event happended at ' + e.pageX + ', ' + e.pageY)
})