title: How to execute a function on mouse click on rectangle HTML5 Canvas
body: <p>I'm looking for a simple way to execute a function when someone clicks on a rectangle inside an HTML5 Canvas. I would like to do it in a way that doesn't require any special libraries. Any suggestions?</p>