how to redirect to another html page in javascript
. In this article we'll look at different ways we can use to redirect to a new web page (or a resource) using only JavaScript. We love creating free content for you guys! Example. Since windowis implicit in the browser, you can also do: Another way is to set the href property of location: location also has an assign()method that accepts a URL, and performs the same thing: The replace() method is different than the previous ways because it rewrites the current page in the history. HTML Button cannot perform redirect similar to a HyperLink and hence using JavaScript a Click event handler is attached to the Button and then using JavaScript window.location property Page will be redirected to another Page. the browser or search engine spider, there is a new address. "); setTimeout('Redirect()', 10000); //-->