JavaScript Redirect
A JavaScript redirect can be used to redirect a visitor from one webpage to another. This could be your site moving to a new domain. Some download sites have a time delay during redirections, which is basically the JavaScript redirect in action. If you are having some external servers mirror your site for you, you would need JavaScript redirect.
Implementing the JavaScript Redirect
First open up your HTML page (most often the index.html) and within the tags, place the following code:
<script type="text/javascript"> <!-- window.location = "http://www.tech-faq.com" //--> </script>
Note that “http://www.tech-faq.com” should be replaced with the URL that you want to redirect your visitors to.

Downsides of JavaScript Redirects
As the name suggests, a JavaScript redirect requires the user to have JavaScript enabled. While keeping JavaScript enabled is the common practice nowadays, there is still that odd user that will have it off. In that case, the JavaScript redirect would not work. This is because of the users’ concerns regarding their security, their browsers not supporting JavaScript, or because the search engine crawlers cannot execute the JavaScript redirection codes.
Comments (1)
Leave a Reply
- javascript:void(0)
javascript:void(0) is an error message that occasionally appears in a web browser when there is a problem loading a JavaScript from a webpage. Possible causes (and solutions) for the javascript:void(0) error message include: Problem Possible Resolution(s) A popup blocker blocking the JavaScript Disable the popup blocker A malfunctioning web proxy Disable the web proxy if [...]...
- How to Make JavaScript Links
Many webmasters want to make JavaScript links instead of HTML links because they believe this will “conserve PR”. This is an unresolved argument among search engine optimization specialists. A normal HTML link looks like this: <a href=”http://www.tech-faq.com”>Tech FAQ</a> And works like this: Tech FAQ A JavaScript link looks like this: <a href=”javascript:var handle=window.open(‘http://www.tech-faq.com’)”>Tech FAQ</a> And [...]...
- JavaScript
JavaScript is a programming language and interactive web platform that allows users to interact with a webpage in a variety of different ways. For example, JavaScript can be used to create interactive drop-down navigation menus in a webpage, insert expandable content into forms or tables, and create interactive slideshows. JavaScript can also be used to [...]...
- Java vs. JavaScript
Java and JavaScript are two different programming languages which have similar names and share similar syntax. Java is a complete object oriented programming language which is designed to create applets or stand-alone applications. JavaScript is a more simple programming language which is designed to create scripts for use on the World Wide Web. Java bytecode [...]...
- JavaScript Tutorials
JavaScript Tutorials Learn the basics of Javascript with TechFaq! Here you will find the most comprehensive list of JavaScript tutorials and resources along with questions and answers. Date Difference Tutorial This tutorial will show you how to calculate the difference between 2 dates in Javascript. Here, you will also learn how to use dates and [...]...





problem facing javascript:void(0) whilte chatting in orkut.