HTMLInputElement: formMethod 屬性
HTMLInputElement 介面的 formMethod 屬性是,當 <input> 元素是提交表單的控制元件時,用於提交 <form> 的 HTTP 方法。它反映了 <input> 元素的 formmethod 屬性的值。
此屬性僅對 submit 和 image 型別的 <input> 元素有效。
如果表單透過 input 元素提交,此值將覆蓋 HTMLFormElement 介面的 method 屬性。此屬性可以被檢索或設定。如果使用空值或無效值設定,則無效的預設值為 "get"。如果根本沒有設定,則值為字串 ""。