Redirect

This web page has examples of using ( window.location.href = ) to redirect you to another page.

Url's

Contents of Web Pages Involved


Contents of: ex_redirect_from.htm

<html>
<title>Redirect To Page</title>
<body>
<p>From this page.</p>
<script language="JavaScript"</script>
<!--
window.location.href = "ex_redirect_to.htm"
//-->
</script>
</body>
</html>


Contents of: ex_redirect_from_metatag.htm

<HTML>
<HEAD>
<META HTTP-EQUIV="refresh" CONTENT="0; URL=ex_redirect_to.htm">
</HEAD>
</HTML>


Contents of: ex_redirect_to.htm

<html>
<title>Redirect To Page</title>
<body>
<h1>Redirect To Page</h1>
<p>You were redirect to the page from ex_redirect_from.htm</p>
<p>
<a href = 'ex_redirect_from.htm'>ex_redirect_from.htm</a> - to test again. It will redirect you back to this page.
</p>
</body>
</html>