Well I have been told you can print iframes, but I have not had success. This will work actually, but make sure the page loads first - in the page you open in the new window insert in the body:
onLoad="self.print();self.close()";
Then the print box opens - and the window will close as soons as that closed. You could put this code in your opener page I suppose too.
This works, however a confirmation box pops up to confirm that you
want to close the window. Is there anyway to prevent this alert message from
coming up when using the close() method?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.