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

Share ☞ Copy Link: πŸ”— https://naijastore.blogspot.com/2020/09/html-question-how-do-i-redirect-old-url.html

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

Share Your Thoughts