Take a screenshot of a webpage with JavaScript?

Scott Bennett-McLeish picture Scott Bennett-McLeish · Sep 13, 2008 · Viewed 123.3k times · Source

Is it possible to to take a screenshot of a webpage with JavaScript and then submit that back to the server?

I'm not so concerned with browser security issues. etc. as the implementation would be for HTA. But is it possible?

Answer

JAAulde picture JAAulde · Aug 3, 2011

Google is doing this in Google+ and a talented developer reverse engineered it and produced http://html2canvas.hertzen.com/ . To work in IE you'll need a canvas support library such as http://excanvas.sourceforge.net/