Using javascript to print images
I would like to know if it's possible to use javascript to open a popup window containing an image, and at the same time have the print dialog show. Once someone clicks on print, the popup closes. Is this easily attainable? Javier Parra popup = window.open(); popup.document.write("imagehtml"); popup.focus(); //required for IE popup.print(); ricardo_escovar Another great solution!! All credit goes to Codescratcher <script> function ImagetoPrint(source) { return "<html><head><scri"+"pt>function step1(){\n" + "setTimeout('step2()', 10);}\n" + "function step2(){window.print();window.close()}\n" +