<html>
<body>
<h2>JavaScript</h2>
<h3>The window.location object</h3>
<input type="button" value="Load new document" onclick="newDoc()">
<script>
function newDoc() {
window.location.assign("../index.html")
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_loc_assign by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:06:58 GMT -->
</html>