Access Event object
Access Event object
Hi
if i bind mousemove with anonymous function then i can access the event object by receiving it as a parameter to the anonymous function
-
var pageCoords;
$("#somediv").bind('mousemove', function(e){
//the event object here is 'e'
pageCoords = "( " + e.pageX + ", " + e.pageY + " )";
});
but what if i do this
-
$("#somediv").bind('mousemove', somefunc);
function somefunc()
{
//how i can get event object here?
//for example i want to do event.stopPropagation();
}
how i can access the event object within somefunc function?
thanks