Fog Juice Posted March 27, 2008 Share Posted March 27, 2008 How can I create a submit button on a form that is an image? <input type="submit" /> I have the following code but this doens't work as a submit button, it only works as a button <input type="image" SRC="images/login.png" onmouseover="this.src='images/loginhover.png'" onmouseout="this.src='images/login.png'" border="0"> Quote Link to comment Share on other sites More sharing options...
Fog Juice Posted March 27, 2008 Author Share Posted March 27, 2008 nevermind it works... code above is correct. Quote Link to comment Share on other sites More sharing options...
zenag Posted March 27, 2008 Share Posted March 27, 2008 <SCRIPT language="JavaScript1.2"> function submitform() { document.myform.submit(); }<A href="javascript: submitform()" ><img src="head_logo.gif" width="33" height="19" border="0" ></A> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.