04May2011
Javascript Redirect Thumbnail

Javascript Redirect

This tutorial will show you how to redirect your page with JavaScript.

This tutorial will show you how to redirect your page with JavaScript.

first you need to tell the browser your using JavaScript by using

 
<script type="text/javascript">

Which tells the browser your using text with javascript you then use the window property and location to specify an address to use

window.location = "http://www.daveismyname.co.uk";

then close the JavaScript

</script>

Here’s the full script

<script type="text/javascript">
window.location = "http://www.daveismyname.co.uk";
</script>
Author
Dave

About the Author

has written 72 articles on Dave is my name.

My name is David Carr I'm a PHP web developer based in Hull it is my passion to design and develop clean, accessible and usable websites using PHP and other web technologies, I'm an avid Twitter user why not follow me? https://twitter.com/daveismynamecom

Visit this author's website   ·   View more posts by

Sharing is caring.
  • Subscribe to our feed
  • Share this post on Delicious
  • StumbleUpon this post
  • Share this post on Digg
  • Tweet about this post
  • Share this post on Mixx
  • Share this post on Technorati
  • Share this post on Facebook
  • Share this post on NewsVine
  • Share this post on Reddit
  • Share this post on Google
  • Share this post on LinkedIn

Discussion

2 responses to "Javascript Redirect"

Leave a Comment