The Event Object
The handler receives an event with target and coordinates.
Example
$("a").on("click", function (e) {
e.preventDefault();
console.log(e.target, e.pageX, e.pageY);
});Exercise
Stop default.
e.()
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.