Hi All,
Can we submit a form thru a hyperlink..
<HTML>
<BODY>
<form name="thisform" method=post
action="http://localhost:8080/servlet/Add">
<A href=# onclick="p();">Hi there</A>
</form>
<script language="JavaScript">
function p()
{
alert("hi");
document.thisform.submit();
}
</script>
</BODY>
</HTML>
When i run this only "Hi" is alerted with nothing happening??
IS there some way out?
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets