Results 1 to 2 of 2

Thread: How to Submit a Form Using JavaScript?

  1. #1
    AllenBrown is offline Senior Member
    Join Date
    Dec 2009
    Posts
    240
    Rep Power
    3

    Default How to Submit a Form Using JavaScript?

    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.

  2. #2
    ScottWright is offline Senior Member
    Join Date
    Dec 2009
    Posts
    243
    Rep Power
    3

    Default

    You can use the following very trouble-free code for submitting a form using the JavaScript:

    Code:
    <script language ="JavaScript">
    function Submitfrm()
    {
    document.form1.action = "Info.html";
    document.form1.submit()
    }
    function ResetForm()
    {
    document.form1.reset()
    }
    </script>
    HTML

    Code:
    <form name="form1" action="">
    <a href="javascript: SubmitForm()">Demo Test</a>
    </form>

Similar Threads

  1. RSS Submit
    By Jadarius Hugue in forum Download Tools and Softwares
    Replies: 0
    Last Post: 08-20-2010, 12:00 PM
  2. How to change flash form into javascript?
    By ThompsonHarris in forum Programming
    Replies: 1
    Last Post: 02-19-2010, 01:39 PM
  3. Unable to Submit information in Database in asp.net
    By TaylorRyan in forum Software Jargons
    Replies: 1
    Last Post: 02-19-2010, 01:21 PM
  4. AMD intends to submit chipset AMD 870
    By Mike Atherton in forum Latest Hardware News
    Replies: 0
    Last Post: 02-11-2010, 07:25 AM
  5. Live Search: Add to Submit your website
    By prtec.teck in forum General Internet Terms
    Replies: 0
    Last Post: 10-15-2008, 07:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48