I want have an entry form (HTML5, CSS3, Chrome Version 65.0.3325.181) and want the data printed. I call up a special site where the print is prepared. At the very end of it I have
    <script type="text/javascript">
        window.print(); 
        window.location.href="aktien.php";
    </script>
</body> 
When I leave out the line with window.location I get the print dialogue and can print the page, but of course it stops afterwards. 
If I don't omit that line, the system goes directly to aktien.php, without print dialogue and without printing. 
 
     
     
    