Hi,
I have a code like this
[CODE=javascript]function printDocument(u rl) {
var newWindow = window.open(<ur l>, '_blank');
newWindow.print ();
setTimeout(<fun ction name>,2000); // code for delaying to complete printing
newWindow.close ();
}
[/CODE]
Here the specified window gets opened and printed. But I actually need to just print the window(newly opened url) without showing it to the user.
I need the code for this.
I have a code like this
[CODE=javascript]function printDocument(u rl) {
var newWindow = window.open(<ur l>, '_blank');
newWindow.print ();
setTimeout(<fun ction name>,2000); // code for delaying to complete printing
newWindow.close ();
}
[/CODE]
Here the specified window gets opened and printed. But I actually need to just print the window(newly opened url) without showing it to the user.
I need the code for this.
Comment