![]() One way to solve it is by using the "onafterprint" event but I don' recommend it to you becasue these events only works in IE. The popup window will be closed before printing is done. ![]() IE will fail with this because it calls the close() function without waiting for the print() call is done. This solution will work in Firefox, because on print() call, it waits until printing is done and then it continues processing javascript and close() the window. This is what you should not do: window.open() ![]() If you try to close the window just after the print() call, it may close the window immediately and print() will don't work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |