<canvas id="my-canvas"></canvas>
var c = document.getElementById('my-canvas') window.open(c.toDataURL('image/png'))