Tsallaka zuwa abun ciki
Justice Tech School

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

What does e.target hold?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.