show a todataurl as image in browser java script code example Example: javascript todataurl var image = new Image(); image.src = canvas.toDataURL();