1

I have this fiddle of print with print preview from this link. When i print using chrome it is going into a print preview mode. But when i try it on ie it is showing the print window right away. What I want to happened is when using ie and click print I will also go into a print preview mode.

This is the JS

document.getElementById('printPage').addEventListener('click', function(){
    window.print();
});

This is the HTML

<input type="image" src="http://placekitten.com/50/50" alt="" id="printPage" />
Community
  • 1
  • 1
Brownman Revival
  • 3,620
  • 9
  • 31
  • 69
  • Did you have a look at the links below? http://stackoverflow.com/questions/7303705/how-do-i-programatically-call-the-print-preview-screen-using-javascript-or-jqu http://stackoverflow.com/questions/230205/how-can-print-preview-be-called-from-javascript – hpatel Jun 27 '15 at 05:41
  • no i haven't i will try to understand what is written in the answer. i have read it but i cant fully understand it – Brownman Revival Jun 27 '15 at 06:03

0 Answers0