javascript after print close window code example
Example: javascript close window after print
<script type="text/javascript">
window.print();
window.onafterprint = window.close;
</script>
<script type="text/javascript">
window.print();
window.onafterprint = window.close;
</script>