Let\'s imagine that circle.png is a 400x400 px transparent background image with a c
You can do this using HTML5 canvas. Draw the image in to the canvas, attach a click handler to the canvas, and in the handler, check if the pixel that was clicked on is transparent.