Return to Snippet

Revision: 5984
at April 30, 2008 18:45 by jachin


Updated Code
<form id="my_form">
    <!-- More HTML -->
    <a href="javascript:{}" onclick="document.getElementById('the_form').submit(); return false;">submit</a>
</form>

Revision: 5983
at April 30, 2008 18:45 by jachin


Updated Code
<form name="my_form">
    <!-- More HTML -->
    <a href="javascript:{}" onclick="document.getElementById('the_form').submit(); return false;">submit</a>
</form>

Revision: 5982
at April 30, 2008 18:12 by jachin


Updated Code
<form name="my_form">
    <!-- More HTML -->
    <a href="javascript:{}" onclick="document.my_form.submit(); return false;">submit</a>
</form>

Revision: 5981
at April 18, 2008 16:28 by jachin


Updated Code
<form name="my_form">
    <!-- More HTML -->
    <a href="javascript: {}" onclick="document.my_form.submit(); return false;">submit</a>
</form>

Revision: 5980
at April 18, 2008 16:27 by jachin


Updated Code
<form name="my_form">
    <!-- More HTML -->
    <a href="javascript: {}" onclick="document.the_form.submit(); return false;">submit</a>
</form>

Revision: 5979
at April 18, 2008 16:25 by jachin


Initial Code
<form name="my_form">
    <!-- More HTML -->
    <a href="{}" onclick="document.the_form.submit(); return false;">submit</a>
</form>

Initial URL

                                

Initial Description
Name the form what ever you like, but make sure that is reflected in the javascript.

Initial Title
submit a form with an anchor tag (link)

Initial Tags
form, link, html

Initial Language
JavaScript