How do I add a simple onClick event handler to a canvas element? When you draw to a canvas element, you are simply drawing a bitmap in immediate mode. The elements (shapes, lines, images) that are drawn have no representation besides the pixels they
The only thing I can think of is that event is in fact window.event and it makes itself available when some event dispatches and Event...but that would mean that any element could get that event information if called at the same time as the event whe