<html>
<body>
<h2>Redirect to a Webpage</h2>
<p>The replace() method replaces the current document with a new one:</p>
<button onclick="myFunction()">Replace document</button>
<script>
function myFunction() {
location.replace("../index.html")
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/howto/tryit.asp?filename=tryhow_js_redirect_webpage by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:38:50 GMT -->
</html>