This is my last piece of code:
var canvas = document.getElementById('my-canvas');
var ctx = canvas.getContext("2d");
// Draw the window at the top left of canvas, width=100, height=200, white background
ctx.drawWindow(window, 0,0, 100, 200, "rgb(255,255,255)");
// Open another window with the thumbnail as an image
open(canvas.toDataURL("image/png"));
html code:
<canvas id="my-canvas"/><br/>
Note: I have been trying different codes in order to take a complete web page screenshot but with this code I'm only able to take a small piece of the web page image.
Can someone help me with this? I need a simple screenshot code in order to use it with FF, Opera and Safari (I already have a specific code for Google Chrome browser working perfectly).