Test of canvas element

canvas is an HTML element for drawing graphics by scripting (usually with JavaScript). <canvas> was first introduced by Apple and is now specified by WHATWG. It is supported by Safari 1.3+, Firefox 1.5+ and Opera 9+. Support in Internet Explorer is faked (imperfectly) by using Google's ExplorerCanvas.

Graphics in <canvas> are resolution-dependent and, at least for now, 2-D only.
If you see this text, either your browser doesn't handle the canvas element, or your browser doesn't recognize the </canvas> tag.
onload
(displays once when page loads)
setInterval
(displays repeatedly at specified interval)
setTimeout
(displays once after specified time)
onkeydown
(press D to display,
C to clear and W to wink)

The Mozilla Developer Center provides a good tutorial.


R. Funnell
Last modified: Sat, 2009 Sep 26 19:36:55