faqts : Computers : Programming : Languages : JavaScript : Forms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 12 people (42%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How do I submit a form only once without using the submit button, instead using an image as a submit

Aug 11th, 2006 16:04
David Alden, Nadeem Munshi,


<html>
<script type="text/javascript" language="javascript">
	function submitThisForm(){
		document.thisForm.submit();
	}
</script>
	<form name="thisForm">
		<img src="path to your image" onclick="submitThisForm
()">
	</form>
</html>