How HTML forms are submitted

Source: Internet
Author: User

Xml
Form Submission Method:
* Submit using Submit
<form>
The data to be submitted
<input type= "Submit"/' >
</form>
Submit a form by using "button"
<form id= "Form1" >
<input type= "text" name= "username"/>
<input type= "button" value = "Commit" onclick= "Form1 ();"/>
</form>
</div>
<script type= "Text/javascript" >
function Form1 () {
Get element
var for1 = document.getElementById ("Form1");
Set Action Actions
For1.acction;
Submit Form Form
For1.submit ("form submission html.html");
}
</script>
* Submit a form using a hyperlink
<a href= "File form submission html.html?username=123456789" > Hyperlink Submission Form </a>

* Common Events
1.onclick: Mouse Click event
2.onchange: Change content (typically used with select)

3.onfocus: Get Focus
4.onblur: Lose focus

How HTML forms are submitted

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.