🌈 搜索
📅  最后修改于: 2020-11-04 00:53:12             🧑  作者: Mango
type是element的属性,它按以下语法中的说明设置按钮的类型:
以下是type属性的三个值:
Example of Button Type Registration Form Firstname Middlename: Lastname: Gender : Male Female Other Phone : Email The below button displays as the submit button, which is used to submit the form. Submit The below button displays the reset button, which is used to reset the form to its initial values. Reset The below button displays a message on a web page when you click on it. After clicking on a button, a function is called from the script tag. Print a Simple Message 输出: 浏览器支持 Element Chrome IE Firefox Opera Safari Yes Yes Yes Yes Yes
输出: