trggrte ryy h grttggt re gefef e

Generally, a form is submitted when the user presses a submit button

180Grader-test Ikke angivet,

13/01/2010

Generally, a form is submitted when the user presses a submit button. However, sometimes, you may need to submit the form programmatically using JavaScript. JavaScript provides the form object that contains the submit() method. Use the ´id´ of the form to get the form object. For example, if the name of your form is ´myform´, the JavaScript code for the submit call is:
document.forms["myform"].submit(); But, how to identify a form? Give an id attribute in the form tag
.,mklklmklmmkl

Here is the code to submit a form when a hyperlink is clicked:

Search:
Search

function submitform(){ document.myform.submit();}
Click the link below to see the code in action:

Kilde: