How To Submit A Form Without Clicking A Submit Button

Forums » Javascipt » How To Submit A Form Without Clicking A Submit Button
this tutorial covers some javascript code you can use when you have a web form and you can send the form without having to click on the submit button at all
today i was wondering how you can make a web form without using a submit button.

normally this is what i use for my web forms:

<input type="submit" name="submit" value"Submit">

but how about if instead of having a button, i can have a link? well, if you are wondering how you can do it, you can do it using javascript. you can use this code as an example:

HTML CODE:
<form name="myform" action="">
Search: <input type='text' name='query'>
<A href="javascript: submitform()">Search</A>
</form>
<SCRIPT language="JavaScript">
function submitform()
{
document.myform.submit();
}
</SCRIPT>
Search: Search
ralph
oh wow, that is amazing, great tutorial just what i was looking for. i am also a javascript geek. thanks man
http://wallpaperama.com/forums/how-to-submit-a-form-without-a-submit-button-t7024.html
Title: How To Submit A Form Without Clicking A Submit Button [817]
Tags: how to submit a form without a submit button
By
Comments 1
Visits 573