Mega Code Archive

 
Categories / JavaScript Tutorial / Form
 

Using Image as the submit button

< html>     <head>         <title>Submit Example</title>     </head>     <body>         <form id="form1" method="post" action="javascript:alert('Submitted')">             <!-- regular textbox -->             <label for="txtName">Name:</label><br />             <input type="text" id="txtName" name="txtName" /><br />                          <!-- submit button -->             <input type="image" src="http://www.rntsoft.com/style/logo.png" />                </form>     </body> </html>