<a href="javascript:submitRequest();">weiter...</a></td>
-----Original Message-----
From: Ebers, David [mailto:David.Ebers@o...]
Sent: Tuesday, March 06, 2001 1:10 PM
To: HTML Code Clinic
Subject: [html_code_clinic] Submit a form with a link?
Hello,
I thougth I could submit a form by executing a client-side javascript
function.
Here is the link
<a class="link" href="foo.jsp"
onclick="javascript:submitRequest();">weiter...</a></td>
and the script
function submitRequest() {
alert("function executing...");
document.forms[0].submit();
}
But it doesn't work.
I want to avoid using the windows-look&feel buttons.
Can somebody please help?
Thanks, David