Hi,
I have a large html page with 1000 images,
I am trying to print the page using java script code
window.print();
My pc stops responding once i click the print button.
This is the my html and java script page, "docxexample.jpg" can be replaced with any jpg file
Has anyone got this issue before.
note that setting the total number of thumbnails to a lower value in the for loop will make the printing ok.
Has anyone had this issue before?
The same issue happens with mozilla, and chrome. However opera seems to be able to print the page fine without any warning!!
If anyone is attempting to help me. plz make sure you remove papers from your printers before allowing the print option.
Also "print to Pdf" works fine no matter how many pictures i print. Problem happens when printing to a real printer only.
Thanks for your feedbacks
<!DOCTYPE html><html><body><p id="demo"></p><script> text ="<table border='6'>"; for (i = 0; i < 200; i++) { text += "<tr><td><IMG HEIGHT='200' SRC='docxexample.jpg' WIDTH='200' ></td><td><IMG HEIGHT='200' SRC='docxexample.jpg' WIDTH='200' ></td><td><IMG HEIGHT='200' SRC='docxexample.jpg' WIDTH='200' ></td><td><IMG HEIGHT='200' SRC='docxexample.jpg' WIDTH='200' ></td><td><IMG HEIGHT='200' SRC='docxexample.jpg' WIDTH='200' ></td></tr>"; } text +="</table>"; document.getElementById("demo").innerHTML = text;</script><script> window.onload = function() { window.print(); }</script></body></html>