HTML DOM Kaynak Nesnesi
Kaynak Nesne
Source nesnesi bir HTML <source> öğesini temsil eder.
Bir Kaynak Nesneye Erişin
Bir <source> öğesine getElementById() kullanarak erişebilirsiniz:
Örnek
var x = document.getElementById("mySource");
Kaynak Nesne Oluşturun
Document.createElement() yöntemini kullanarak bir <source> öğesi oluşturabilirsiniz:
Örnek
var x = document.createElement("SOURCE");
Kaynak Nesne Özellikleri
Property | Description |
---|---|
media | Sets or returns the value of the media attribute in a <source> element |
src | Sets or returns the value of the src attribute in a <source> element |
type | Sets or returns the value of the type attribute in a <source> element |
Standart Özellikler ve Olaylar
Source nesnesi ayrıca standart özellikleri ve olayları da destekler .
İlgili Sayfalar
HTML eğitimi: HTML5 Videosu
HTML eğitimi: HTML5 Ses
HTML referansı: HTML <source> etiketi