javascript Programming Glossary: elem.onclick
How do I add a simple onClick event handler to a canvas element? http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element JavaScript var elem document.getElementById 'myCanvas' elem.onClick alert hello world displays alert without clicking elem.onClick.. alert hello world displays alert without clicking elem.onClick alert 'hello world' displays alert without clicking elem.onClick.. alert 'hello world' displays alert without clicking elem.onClick alert 'hello world ' does nothing even with clicking elem.onClick..
|