title: Close window automatically after printing dialog closes
body: <p>I have a tab open when the user clicks a button. On the <code>onload</code> I have it bring up the print dialog, but the user asked me whether it was possible that after it sends to the printer to print, if the tab could close itself. I am not sure whether this can be done. I have tried using <code>setTimeout();</code>, but it's not a defined period of time since the user might get distracted and have to reopen the tab. Is there any way to accomplish this?</p>