<HTML>
<HEAD>
<TITLE> Check it</TITLE>
</HEAD>
<script>
function fun(){
alert ("In function");
}
</script>
<BODY>
<center>
<input type=password name=pword>
<br>
<button type=submit name=b1 onclick="fun()">
<img src="YourImage.jpg">
</img>
</button>
</center>
</BODY>
</HTML>
Try this
this is working with me fine
i mean don't user href but put the imag on the submit button
Vaishali
RIL
Ahm'd
Hi all,
In my aplication, in some point of time, user clicks on change
password button, a window will be opned up, asking about new password. On
that window, I have a textbox and a image(On a href on this image, I am
calling a java script function). Now, user wants to this to work, even when
he enters the password and hit "Enter" insted of clicking the button. How
to do this? Any idea? I tried with onChange and onBlur functions, but they
are not working.
Thanks in advance,
Smita
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com