創建一個按鈕,點擊該按鈕后,即提交表單。
Creates a button that, when clicked, submits the form.
使用 VALUE 標簽屬性將創建無法由用戶編輯的顯示標簽。默認的文字是 Submit Query。如果用戶單擊提交按鈕提交了表單,并且按鈕指定了 name 標簽屬性,那么該按鈕也將以 name/value 方式成對提交。
如果 INPUT type=submit 元素是 FORM 元素的一部分,則該按鈕將以粗邊框顯示,這代表著用戶按回車就可提交表單。
如果在同一表單中有多個 INPUT type=submit 按鈕,按回車鍵將使用第一個 INPUT type=submit 按鈕提交表單,除非此時正有另一個 INPUT type=submit 按鈕獲得了焦點。如果另外一個 INPUT type=submit 按鈕已獲得焦點,按回車鍵將使用獲得焦點的 INPUT type=submit 按鈕提交表單。
此元素在 Internet Explorer 3.0 及以上版本的 HTML 和腳本中可用。
此元素是一個內嵌元素。
此元素不需要關閉標簽。
Use the VALUE attribute to create a button with a display label that cannot be edited by the user. The default label is Submit Query. If the user clicks the Submit button to submit the form, and that button has a name attribute specified, that button contributes a name/value pair to the submitted data.
If the INPUT type=submit element is part of a FORM element, it appears as a button with a dark border, which indicates the user can press ENTER to submit the form.
When there is more than one INPUT type=submit in the same form, pressing enter submits the form using the first INPUT type=submit, unless another INPUT type=submit has focus. When another INPUT type=submit has focus, pressing enter submits the form using that INPUT type=submit.
The INPUT type=submit element is available in HTML and script as of Internet Explorer 3.0.
This element is an inline element.
This element does not require a closing tag.
<input type="submit" value="提交">