Posts by Renan Valente • 51 points
1 post
-
5
votes3
answers2130
viewsA: Close page when printing
Simply add the following codes: <script> window.print(); window.addEventListener("afterprint", function(event) { window.close(); }); window.onafterprint(); </script>…
javascriptanswered Renan Valente 51