Web Guide UK - Web Design Articles & Tutorials
Home | Articles | Tutorials | Contact
Tutorial Categories
  • All Tutorials
  • CSS
  • Javascript
  • PHP
  • XHTML
Site Stats
  • Tutorials: 21
  • Tutorial Views: 18692
  • Articles: 5
  • Article Views: 2178
Site Partners
  • Good Tutorials
  • Links Lounge
  • Pixel 2 Life
  • Tiz Tag

Home > Tutorials > javascript > Javascript Redirect

Javascript Redirect

This tutorialwill 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.webguideuk.com/"



then close the javascript


</script>



Here's the full script


<script type="text/javascript">
window.location = "http://www.google.com/"
</script>

Posted on Saturday, February 23rd, 2008 viewed 176 times, 0 Comments

Comments

No comments yet

Add a Comment

Name:

Email: 

Comments

Are you human? if so type "webguideuk" in the box below

Back to Top

© Web Guide UK 2005 - 2008 Design by Nutty Coder - Web Design Hull