I hope that help you:
html2canvas(htmlSource, {scrollY: -window.scrollY})
.then(function(canvas) {
var img = canvas.toDataURL();
window.open(img);
});
More Related Contents:
- Using HTML5/Canvas/JavaScript to take in-browser screenshots
- HTML2canvas generates Blurry images
- capture div into image using html2canvas
- html2canvas does not work with Google Maps Pan
- create screenshot of webpage using html2canvas (unable to initialize properly)
- required field notification using jquery
- Why is null an object and what’s the difference between null and undefined?
- Link and execute external JavaScript file hosted on GitHub
- Why don’t we just use element IDs as identifiers in JavaScript?
- How do I concatenate a string with a variable?
- Detect a finger swipe through JavaScript on the iPhone and Android
- Can we call the function written in one JavaScript in another JS file?
- Ternary operators in JavaScript without an “else”
- Best JavaScript compressor [closed]
- How to pull the file name from a url using javascript/jquery?
- Prevent JavaScript keydown event from being handled multiple times while held down
- Convert JSON string to array of JSON objects in Javascript
- Use variable outside the success function from an ajax/jquery call
- Parse XLSX with Node and create json
- Why is document.execCommand(“paste”) not working in Google Chrome?
- How do you search an array for a substring match?
- What’s the difference between empty items in a JavaScript array and undefined? [duplicate]
- new FormData() “application/x-www-form-urlencoded”
- Mongoose: multiple query populate in a single call
- Accessing the document object of a frame with JavaScript
- jqPlot DateAxis tickInterval not working
- Opening a new tab using Ctrl + click combination in Selenium Webdriver
- Angular directive templateUrl relative to .js file
- Why does block assigned value change global variable? [duplicate]
- How to implement an onmousedown and onmouseup on an iPhone touch screen