[Javascript] HELP: USING AN IMAGE FOR THE SUBMIT BUTTON ON A .JS FORM

Ian Turner ian.turner at romseyassoc.com
Fri Mar 30 02:57:44 CST 2001


<script language="JavaScript">
	function submitIt(form)
	{
		form.submit();
	}
</script>


<img src="images/submit.gif" onclick="submitIt(frmname);">

All the best
	Ian

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Steven Pesant
Sent: 30 March 2001 06:57
To: javascript at LaTech.edu
Subject: [Javascript] HELP: USING AN IMAGE FOR THE SUBMIT BUTTON ON A
.JS FORM


Hi there,

Hopefully someone out here can provide a little assistance.  I've built a
<FORM> that makes use of Javascript.  Rather than just using a default
SUBMIT button, I need to make use of an IMAGE for the submit button.

When I use a default SUBMIT button everything works perfectly, but as soon
as I change to an IMAGE for the SUBMIT button, the coordinates of where the
user clicks on the image are added to the URL and it fails.

My submit code looks like:

<input type="image" onClick="PickURL()" src="images/searchbutton.gif">


Any pointers would be greatly appreciated.  Thanks.



-= Cheers =-
	Steve

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list