By 05/02/2014 18 Comments

How to redirect a webpage in Javascript

Webpage redirect

  • You can redirect the current webpage to another URL or website
  • We can achieve this by using location.href property
  • location.href is a property of browser’s window builtin object

Following single will redirect you to another webpage from current page.

window.location.href = "http://tutorialstown.com/"; // assign targeted url to window.locoation.href property where window is a browser's builtin object






Posted in: JavaScript

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .