Calling a javascript function after loading a page with window.location.assign
Is it possible to call a javascript function after loading a page with window.location.assign? I have this code. <script language="javascript" type="text/javascript"> function Loadspirit(){ window.location.assign("spirituality.php"); ReadEnglish(); } </script> I load the page then call ReadEnglish(), a function defined in spirituality.php. The function doesn't execute. What would be the way to make the function execute? As soon as you assign a new window.location, the browser starts loading a new page in the current browser window. That stops execution of all javascript in this window and