Languages

Menu
Sites
Language

Create a canvas element dynamically

A simple example of creating a canvas dynamically.

Responses

1 Replies
Marco Buettner

var canvas = document.createElement('yourCanvas'); 

should be

var canvas = document.createElement('canvas');