Html Question: How do I redirect an old url to a new page using JavaScript? - Qs and As

Webmaster - Answer:

    You can make use of one of the JavaScripts below:

    <script>
    window.location.replace("https://MyNewUrl/");
    </script>

    OR

    <script>
    window.open("https://MyNewUrl/","_top",true);
    </script>


Comments

Post a Comment