I am learning JavaScript. I create a form with the HTML and in that I have not used any highly developed option. It is very a simple form. I want to know how to submit a Form Using JavaScript..?? Thanks in advanced.
I am learning JavaScript. I create a form with the HTML and in that I have not used any highly developed option. It is very a simple form. I want to know how to submit a Form Using JavaScript..?? Thanks in advanced.
You can use the following very trouble-free code for submitting a form using the JavaScript:
HTMLCode:<script language ="JavaScript"> function Submitfrm() { document.form1.action = "Info.html"; document.form1.submit() } function ResetForm() { document.form1.reset() } </script>
Code:<form name="form1" action=""> <a href="javascript: SubmitForm()">Demo Test</a> </form>
Bookmarks