JavaScript form submit using image: example

The code:
<form name="myform" action="handle-data.php">
Search: <input type='text' name='query' />
<a href="javascript: submitform()">
<img src="go.gif" width="33" height="19" border="0" />
<script type="text/javascript">
function submitform()
    if(document.myform.onsubmit &&
The form created by the code above:


Note: Use Simfatic Forms to create complete web forms quickly without coding. More Info

Back to Article (more samples and cases):
How To Submit a Form Using JavaScript