Javascript redirect script

When you move to a new domain, there are many ways to redirect your readers to the new domain.
For Blogger Users: This can be placed on the sidebar.


1) Redirecting Stealthy
The visitor wont even know that he/she has been redirected.

<html>
<script>
location = "http://suhastech.com";
</script>
</html>


1) Redirecting with an alert
The visitor would redirected with an alert.

<html>
<script>
alert( "This website has been moved to a new domain... click OK to be redirected");
location = "http://suhastech.com";
</script>
</html>


1) Redirecting with an alert
The visitor would be asked either to continue to be redirected or to go back

<html>
<script>
if(confirm( "This website has been moved to a new domain... would you like to be redirected"))
{
location = "http://suhastech.com";
}
else
{
history.back();
}
</script>
</html>



So lazy that he can't even fill this column out.

© 2009 Suhas Tech. All rights reserved.
Proudly powered by Wordpress.