
Magneto |
Hi cgiFX,
This bit of JavaScript is as simple as it is useful. For any website developer there must have come that point when they wanted to submit a form using a link. Below is the code:
Be sure to name your form for example:
<form name="testForm" ...
Use the below code for your link to submit the form. Notice where the name of the form is used.
<a href="javascript:document.testForm.submit();">Submit Me!</a>
- Magneto.
Monday, 21st September 2009
| Votes: |
|
51 |
|
25 |
|