> 1. The user clicks on a "Print" link.
2. Load the page to be printed, set the onload event to print the
document (window.print())
3. Add a meta tag to do a page refresh back to the main page with no
time delay.
This procedure worked fine, but I have stumbled into another problem:
The "print" page I am using can be reached from many different pages. Using
the meta tag with a static url will require me to make a "print" page for
each of the parent pages. Is there any way to "go back" after the print?
Or, if I launch the "print" page in a new browser window, is there anyway to
close the window after the print is done?
I have experimented with the onafterprint event, but for some reason the
event fires before the print dialog pops up.
Cheers,
Erik.