I'm creating a credit card processing form. On the last page the user has the option to confirm their payment information or cancel the transaction altogether (which simply switches them out of the processing page and back to the home page of the site).
I want this "cancel transaction" button to look the same as the "submit" button, but of course it won't actually be a form button - it'll be a link. It will be outside the form, so the form won't confuse it with a real submit button.
Is it possible to do this, with or without javascript?
I'm thinking something like
<a href=http://www.webdeveloper.com/forum/archive/index.php/"home.html"><input type="submit (or whatever)"></a>
or
<input type="submit" onClick="some javascript that takes them to a different URL">
Suggestions?
I want this "cancel transaction" button to look the same as the "submit" button, but of course it won't actually be a form button - it'll be a link. It will be outside the form, so the form won't confuse it with a real submit button.
Is it possible to do this, with or without javascript?
I'm thinking something like
<a href=http://www.webdeveloper.com/forum/archive/index.php/"home.html"><input type="submit (or whatever)"></a>
or
<input type="submit" onClick="some javascript that takes them to a different URL">
Suggestions?