- 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 [817], Last Updated: Sat May 18, 2024
wallpaperama
Sat Jan 24, 2009
1 Comments
638 Visits
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>
https://www.wallpaperama.com/forums/how-to-submit-a-form-without-a-submit-button-t7024.html