Syntax: window.location.href = "url here";
ExampleRedirect this web site to
If we give the relative path as url, then the page will be redirected to another page with in the web site.
- ex : if we give the url as "/linq" then the page will be redirect to "/linq"
we can give the another website url, so that it will redirect to another web site.
- ex: http://www.google.com