Reference removeElements()

removeElements()

Removes all elements created by p5.js, including any event handlers.

There are two exceptions: canvas elements created by createCanvas() and p5.Render objects created by createGraphics().

Examples

Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!

Related References