定義創(chuàng)建一個(gè)按鈕,點(diǎn)擊該按鈕后,即提交表單。 Creates a button that, when clicked, submits the form. 注釋使用 VALUE 標(biāo)簽屬性將創(chuàng)建無(wú)法由用戶編輯的顯示標(biāo)簽。默認(rèn)的文字是 Submit Query。如果用戶單擊提交按鈕提交了表單,并且按鈕指定了 name 標(biāo)簽屬性,那么該按鈕也將以 name/value 方式成對(duì)提交。 如果 INPUT type=submit 元素是 FORM 元素的一部分,則該按鈕將以粗邊框顯示,這代表著用戶按回車(chē)就可提交表單。 如果在同一表單中有多個(gè) INPUT type=submit 按鈕,按回車(chē)鍵將使用第一個(gè) INPUT type=submit 按鈕提交表單,除非此時(shí)正有另一個(gè) INPUT type=submit 按鈕獲得了焦點(diǎn)。如果另外一個(gè) INPUT type=submit 按鈕已獲得焦點(diǎn),按回車(chē)鍵將使用獲得焦點(diǎn)的 INPUT type=submit 按鈕提交表單。 此元素在 Internet Explorer 3.0 及以上版本的 HTML 和腳本中可用。 此元素是一個(gè)內(nèi)嵌元素。 此元素不需要關(guān)閉標(biāo)簽。 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="提交"> 另見(jiàn)相關(guān)教程和示例代碼 |
|