Possible Duplicate:
How to make a page redirect using Javascript?
i have an HTML pages i want to use to redirect from one page to another like response.redirect in ASP.Net. i think i must use JavaScript.
Possible Duplicate:
How to make a page redirect using Javascript?
i have an HTML pages i want to use to redirect from one page to another like response.redirect in ASP.Net. i think i must use JavaScript.
<input type="button" onclick="document.location.href = 'http://google.com'" />
or without JS
<form action="/contact.html">
<input type="submit">
</form>
In JavaScript you can do:
window.location="http://someplace.com";
or on HTML button do this:
<input type="button" onclick="document.location='http://someplace.com'" />
onclick="document.location.href = 'http://google.com'"
OR
onclick="window.location = 'http://google.com'"
Should work fine if you add it into your tag, replacing google with your desired address of course.
Or you could use a link styled as a button. If the only thing that button does is redirects to other page, then you should use a link, it would be semantically better.