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.
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.