What are the events on a canvas object I can handle?

What events on the canvas object that I can handle. In particular, I’m looking for a mouse click (or down, or up, etc) event that will give me the x and y within the canvas.


Here is a little [Demo].

var canvas = document.getElementById("canvas");
canvas.onclick = function(e) {
  // mouse coordinates relative 
  // to the canvas element
  var position = canvas.getBoundingClientRect();
  var click = {
    x: e.clientX - position.left,
    y: e.clientY - position.top