How to redirect your webpage to a URL using JavaScript
How to redirect your webpage to a specific URL using JavaScript
The following is a basic example of HTML and JavaScript code that redirects a web page to a specific URL:
<html>
<head>
<meta http-equiv="Refresh" content="10;url=http://www.serverintellect.com">
</head>
<body>
This code will redirect the website to “http://www.serverintellect.com “ in 10 seconds.
</body>
</html>
The line below does the actual redirection:
<meta http-equiv="Refresh" content="10;url=http://www.serverintellect.com">
In the code above, you can replace the “10” with any number. This number is the amount of seconds the page will wait before redirecting. You can set this to “0” if you wish to redirect with out displaying the current page for any length of time. The “url=” is where you will place the URL you wish to redirect too.