Javascript: close window after printing
-
I want a webpage to show the printdialog and close the window when this printdialog is closed: window.print(); window.close(); What am I doing wrong? btw: is it possible to disable/change the header/footer dynamically before the page is printed? -- Alex Marbus www.marbus.net But then again, I could be wrong.
-
I want a webpage to show the printdialog and close the window when this printdialog is closed: window.print(); window.close(); What am I doing wrong? btw: is it possible to disable/change the header/footer dynamically before the page is printed? -- Alex Marbus www.marbus.net But then again, I could be wrong.
window.print();
should load the print dialog to the screen, however it won't run thewindow.close();
function until the print dialog has closed by the user hitting the print button or hitting the close button on the dialog. Otherise the code works for me. :) HTH Nick Parker
**The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown
**