HTML DOM Girişi Gönderme Nesnesi
Giriş Gönder Nesnesi
Input Submit nesnesi, type="submit" ile bir HTML <input> öğesini temsil eder.
Bir Girdi Gönderme Nesnesine Erişme
getElementById() kullanarak type="submit" ile bir <input> öğesine erişebilirsiniz:
Örnek
var x = document.getElementById("mySubmit");
İpucu: Bir formun öğe koleksiyonunda arama yaparak da <input type="submit"> öğesine erişebilirsiniz .
Bir Girdi Gönderme Nesnesi Oluşturun
Document.createElement() yöntemini kullanarak type="submit" ile bir <input> öğesi oluşturabilirsiniz:
Örnek
var x = document.createElement("INPUT");
x.setAttribute("type", "submit");
Giriş Gönder Nesne Özellikleri
Property | Description |
---|---|
autofocus | Sets or returns whether a submit button should automatically get focus when the page loads |
defaultValue | Sets or returns the default value of a submit button |
disabled | Sets or returns whether the submit button is disabled, or not |
form | Returns a reference to the form that contains the submit button |
formAction | Sets or returns the value of the formaction attribute of a submit button |
formEnctype | Sets or returns the value of the formenctype attribute of a submit button |
formMethod | Sets or returns the value of the formmethod attribute of a submit button |
formNoValidate | Sets or returns whether the form-data should be validated or not, on submission |
formTarget | Sets or returns the value of the formtarget attribute of a submit button |
name | Sets or returns the value of the name attribute of a submit button |
type | Returns which type of form element the submit button is |
value | Sets or returns the value of the value attribute of the submit button |
Standart Özellikler ve Olaylar
Girdi Gönder nesnesi ayrıca standart özellikleri ve olayları da destekler .
İlgili Sayfalar
HTML öğreticisi: HTML Formları
HTML referansı: HTML <input> etiketi
HTML referansı: HTML <input> tipi özniteliği