I realize there are more appropiate forums for this question but…
I have some Javascript that displays a small window with the current document displayed in a printable format. The print dialog is then displayed.
I have all of this working in JS but what I would like to do is to close the window after it is printed but it seems like the window closes before the window is printed. Is there any way to do what I want to do? If so how?