I have this image below:
<img src="sample.png"></img>
Javascript code:
win = window.open(img.src,"_blank");
win.onload = function() {
win.print();
}
I want to print the image without opening a window. How will I do that in javascript?
I have this image below:
<img src="sample.png"></img>
Javascript code:
win = window.open(img.src,"_blank");
win.onload = function() {
win.print();
}
I want to print the image without opening a window. How will I do that in javascript?