javaScript Close окно после печати

<script type="text/javascript">
  window.print();
  window.onafterprint = window.close;	
</script>
loneWolf_sage