I am working on a web page that allows a user to review orders that are pending approval. If the user approves the order it will print the order then run an asp page to close the order after it has been printed. How can I check to see if the printer dialog box has closed so that I can execute the next command. Thanks in advance!
-Tsu
-Tsu
Code:
<script language="JavaScript">
function approveorder()
{
if(box1.checked == false)
{ alert('Please confirm Statement of Review!'); }
window.print()
if (print.closed == true)
{ alert('Printing complete!'); }
<!-- Command that will execute to close the order goes here!
}
</script>
Comment