Redirect with JavaScript [duplicate]

0

How to redirect a page with JavaScript?

It would be interesting if it were in a way that worked in PHP and JavaScript, which had low data processing.

    
asked by anonymous 16.08.2017 / 14:57

1 answer

0

A simple way is with the code:

<script> window.location('pagina.php'); </script>

You can also do this same redirect by having the php code write that code. The benefit is the reduction in server processing

Echo "<script> window.location('pagina.php'); </script>";
    
16.08.2017 / 14:57