I have a php code where I print an'echo' at the end of my entire process ie:
<?php
/*
aqui va todo el proceso...
*/
echo "Proceso teminado";
?>
I want to know if you can close the browser window once that text appears. I know beforehand that there is a code in JS that is closing process window.close();
the issue is that I want to run it automatically, as soon as the text ends the sale, is there a way to achieve it ?.
Greetings.