window.location = "http://www.devcurry.com";
However the problem with this approach is that it adds an item to your browser history. So in browsers like IE, the user can access the history by hitting the back button, which can be confusing to users, as they will redirected back and forth.
If you want to avoid the back button, use ‘window.location.replace’ which loads the new page and replaces the current page in the user's History, with the new one, as shown below:
<title>Redirect to a New Page</title>
Now when you are redirected to the new page, there is no back button.
Note: If you are using ASP.NET, check my article Permanent Redirect in ASP.NET 4.0
Will you give this article a +1 ? Thanks in advance