Take a screenshot of a webpage with JavaScript?
问题 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? 回答1: I have done this for an HTA by using an ActiveX control. It was pretty easy to build the control in VB6 to take the screenshot. I had to use the keybd_event API call because SendKeys can't do PrintScreen. Here's the code for that: Declare Sub keybd_event Lib "user32