Click to See Complete Forum and Search --> : Is it possible to create a normal "a href" link by using a form button?


Pelle
02-20-2005, 01:04 PM
How can I use a form button as a link (when the button is clicked the user is taken to another web page)? I have tried many things, so if it is not possible I would be grateful if you could tell me. Otherwise I guess I just have to design my own buttons.

MstrBob
02-20-2005, 01:12 PM
<form action="page.html">
<div><input type="submit" value="Next Page"></div>
</form>

Fang
02-20-2005, 01:12 PM
<button type="button" onclick="location.href='http://www.site.com';">leave this site</button>
It would be sensible to wrap the element in an anchor in case JavaScript has been switched off