How to create listener on document.createElement func?
For example, after
var canvas = document.createElement("canvas");
it was done automatically
console.log("createElement worked")
P.S. how to do the same but with different functions, for example toDataURL
var str = canvas.toDataURL("image/png");
it was done automatically
console.log("toDataURL worked")