<script type="text/javascript"> //window.takeScreenShot = function() { var widthDiv = document.getElementById("target").offsetWidth; var heightDiv = document.getElementById("target").offsetHeight; html2canvas(document.getElementById("target"), { onrendered: function (canvas) { document.body.appendChild(canvas); }, width: widthDiv, height: heightDiv, allowTaint: true, letterRendering: true }); //} </script>
Chciałbym zrobić, tak by obrazek nie wyświetlał się na dole strony, a zapisywał na serwerze jako obrazek pod nazwą "screen.png". W jaki sposób mogę to zrobić?