trying figure out why not working, should take screenshot of "hello" onload isn't doing anything?
thanks in advanced can me, unfamiliar javascript , using function.
<html> <body> <script src="html2canvas.js"> window.onload = function(){ html2canvas(document.body, { onrendered: function(canvas) { document.body.appendchild(canvas); }, width: 300, height: 300 })}; </script> </body> <h1>hello</h1> <canvas id="canvas" width="300" height="300" style="border:1px solid #d3d3d3;"> </html>
try this...
<html> <body> <script src="html2canvas.js"> window.onload = function(){ html2canvas(document.body, { onrendered: function(canvas) { document.body.appendchild(canvas); }, width: 300, height: 300 })}; </script> <h1>hello</h1> <canvas id="canvas" width="300" height="300" style="border:1px solid #d3d3d3;"> </body> </html> move canvas , h1 tags within , tags.
Comments
Post a Comment