HTML DOM Çıktı Nesnesi
Çıktı Nesnesi
Çıktı nesnesi, bir HTML <output> öğesini temsil eder.
Not: <output> öğesi, Internet Explorer / Edge'de desteklenmez.
Çıktı Nesnesine Erişme
Bir <output> öğesine getElementById() kullanarak erişebilirsiniz:
Örnek
var x = document.getElementById("myOutput");
İpucu: Bir <output> öğesine , bir formun öğe koleksiyonunda arama yaparak da erişebilirsiniz .
Çıktı Nesnesi Oluşturun
Document.createElement() yöntemini kullanarak bir <output> öğesi oluşturabilirsiniz:
Örnek
var x = document.createElement("OUTPUT");
Çıktı Nesnesi Özellikleri
Property | Description |
---|---|
defaultValue | Sets or returns the default value of an <output> element |
form | Returns a reference to the form that contains the <output> element |
htmlFor | Returns the value of the for attribute of an <output> element |
labels | Returns a list of <label> elements associated with the <output> element |
name | Sets or returns the value of the name attribute of an <output> element |
type | Returns which type of HTML element the Output object represents |
value | Sets or returns the value of an <output> element |
Standart Özellikler ve Etkinlikler
Çıktı nesnesi ayrıca standart özellikleri ve olayları da destekler .
İlgili Sayfalar
HTML referansı: HTML <output> etiketi