Create Mouse events: Click.js

The onClick event fires whenever a mouse button is clicked. If attached to a specific object (such as the div in the example below), the event only fires if the mouse is clicked within the bounds of that object.