- Forums
- Javascipt
- How To Submit A Form With A Link Instead Of A Submit Button
did you know you can use a link instead of a submit button in a web form. you can, all you have to do is use javascript, here i will show you how you can do this [821], Last Updated: Sat May 18, 2024
wallpaperama
Wed Jul 08, 2009
0 Comments
1478 Visits
today i wanted to know how i can have a form using html but i didnt want to use a submit button, instead, i wanted to have a link using javascript, well, if you are also wanting to know about submitting a form using javascript i will show you how you can create an html using a sample:
here is the code:
<script language="javascript">
function sendform()
{
document.webform.submit();
}
</script>
<form name="webform" action="http://www.wallpaperama.com/forums/how-to-submit-a-form-with-a-link-using-javascript-t7485.html">
enter keyword: <input type='text' name='search'>
<a href="javascript: sendform()">submit</a>
</form>