views:

40

answers:

2

Suppose the event is e. How to know where it happened (as in position)?

I'm also using jQuery.

A: 

e.target gives the object that triggered the event.

Ikke
+1  A: 

I think you're looking for e.pageX and e.pageY:

$('#something').click(function(e) {
  alert('event happended at ' + e.pageX + ', ' + e.pageY)
})
Roatin Marth