I have a print button on a screen which, when clicked, I want to open a new window, print the contents and close it. However, it's not working.
The window will open and print but it's not closing.
I have the window.print() function called onLoad and then am trying to use the window.onafterprint() to call the window.close function.
Any ideas why this doesn't work. I put a debug message in the onafterprint function and it appears to be calling this function even before the page prints.
Mighty
The window will open and print but it's not closing.
I have the window.print() function called onLoad and then am trying to use the window.onafterprint() to call the window.close function.
Any ideas why this doesn't work. I put a debug message in the onafterprint function and it appears to be calling this function even before the page prints.
Mighty