HTML DOM Girdisi Gizli Nesne
Gizli Nesne Girin
Input Hidden nesnesi, type="hidden" ile bir HTML <input> öğesini temsil eder.
Bir Girdi Gizli Nesnesine Erişme
getElementById() kullanarak type="hidden" ile bir <input> öğesine erişebilirsiniz:
Örnek
var x = document.getElementById("myInput");
İpucu: Bir formun öğe koleksiyonunda arama yaparak da <input type="hidden"> öğesine erişebilirsiniz .
Girdi Gizli Nesnesi Oluşturun
Document.createElement() yöntemini kullanarak type="hidden" ile bir <input> öğesi oluşturabilirsiniz:
Örnek
var x = document.createElement("INPUT");
x.setAttribute("type", "hidden");
Gizli Nesne Özelliklerini Girin
Property | Description |
---|---|
defaultValue | Sets or returns the default value of the hidden input field |
form | Returns a reference to the form that contains the hidden input field |
name | Sets or returns the value of the name attribute of the hidden input field |
type | Returns which type of form element a hidden input field is |
value | Sets or returns the value of the value attribute of the hidden input field |
Standart Özellikler ve Olaylar
Input Hidden 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