View Full Version : Hyperlink Button (Submit, Reset button type)
Dudeman456
08-02-2005, 01:05 PM
What is the code for making what normally would be a submit button or a reset button, a hyperlink button?
_Aerospace_Eng_
08-02-2005, 01:19 PM
Submit: <a href="#" onclick="document.forms[0].submit();return false">Submit</a>
Reset: <a href="#" onclick="document.forms[0].reset();return false">Reset</a>
Where the 0 in forms[0] is the location of the form on the page with 0 being the first form on the page.
Dudeman456
08-02-2005, 01:35 PM
It does'nt quite work for me, when I put that code into a blank page, I get a the word Submit or Reset, underlined as a hyperlink, when I put my mouse over it the link is[file:///c:/test.html#].
How do I make this into button like the submit button?
sorta like
<input name="Home2" id="Home2" value="HOME" type="submit">
You'll need to make a design using CSS. Something like;
#button {
border: 1px solid #666;
color: #000;
background: #CCC;
etc etc
}
Should work. Input buttons change look depending on what browser they are viewed on.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.