First tutorial in this section
JavaScript redirection can be done in 3 ways:
1) Alert Redirect:
Quote:
<html>
<script>
alert("This page has been moved to a new location. Click OK to be redirected.");
location = "http://www.yoursite.com";
</script>
</html>
|
2) Confirm and Redirect:
Quote:
<html>
<script>
if(confirm("This page has been moved to a new location. Would you like to be redirected"))
{
location = "http://www.yoursite.com";
}
else
{
history.back();
}
</script>
</html>
|
3) Stealth Redirect:
Quote:
<html>
<script>
location = "http://www.yoursite.com";
</script>
</html>
|
I hope you enjoy this