How to Capture Screenshot of Page using JavaScript
Capture Screenshot