How to redirect a page


Method 1 :

<meta http-equiv="refresh" content="1;url=url">

Method 2 :

<script type=”text/javascript”>
window.location.href = “url”
</script>

Method 3 : (Redirection with delay)

<script type=”text/JavaScript”>
<!–
setTimeout(“location.href = ‘http://www.google.com’;“,1000);
–>
</script>

Tagged with:
Posted in Javascript, Mixz Tricks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow me on Twitter

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 442 other followers

%d bloggers like this: