Quantcast
Channel: How to redirect one HTML page to another on load - Stack Overflow
Viewing all articles
Browse latest Browse all 51

Answer by Paul Ogilvie for Redirect from an HTML page

$
0
0

As far as I understand them, all the methods I have seen so far for this question seem to add the old location to the history. To redirect the page, but do not have the old location in the history, I use the replace method:

<script>    window.location.replace("http://example.com");</script>

Viewing all articles
Browse latest Browse all 51

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>