Create Screenshot of an scrollable iframe
This tiny tutorial describes how to capture a screenshot of a scrollable iframe in most modern browsers.
Recently I had the challenge to create a screenshot of an iframe that was embedded into a html page. After a while I got the idea to try it with plain vanilla javascript. Hence nearly all modern browsers support the contentWindow property of iframes (see this article from w3cSchool.com) And what should I say? The following snippet brought me the solution:
document.getElementsByClassName('ifram…
View On WordPress












