Tag Archives: JavaScript
How to make a javascript redirection script
If you need to redirect visitors from one page to another or if you changed the domain you need a redirection script. Redirection can be done in many different ways but i will show you the simplest way, that is using a java script. Java script only needs to be supported by browsers and every modern browser supports it. So java script is the best way for doing redirection.
The main part of redirection is to use window.location=”http://something.com”. Put this in one function and it will look like this:

I could have made money this way, and perhaps amused myself writing code. But I knew that at the end of my career, I would look back on years of building walls to divide people, and feel I had spent my life making the world a worse place.


