HTML DOM Belgesi yerleştirmeleri
Örnek
Bir belgedeki <embed> öğelerinin sayısı:
let num = document.embeds.length;
Tanım ve Kullanım
Özellik embeds
, belgedeki tüm <embed> öğelerinin bir koleksiyonunu döndürür.
embeds
Mülk salt okunurdur .
Uyarı
Çoğu tarayıcı artık yerleşik Uygulamaları veya Eklentileri desteklememektedir.
Katıştırılmış ActiveX denetimleri artık hiçbir tarayıcıda desteklenmemektedir.
Shockwave Flash, modern tarayıcılarda da kapatılmıştır.
Öneriler
Bir resmi gömmek için <img>
etiketi kullanın.
HTML'yi gömmek için <iframe>
etiketi kullanın.
Video veya ses gömmek için a <video>
veya <audio>
etiketini kullanın.
Ayrıca bakınız:
Sözdizimi
document.embeds
Özellikler
Property | Description |
length | The number of <embed> elements in the collection. |
yöntemler
Method | Description |
[index] | Returns the element with the specified index (starts at 0). Returns null if the index is out of range. |
item(index) | Returns the element with the specified index (starts at 0). Returns null if the index is out of range. |
namedItem(id) | Returns the element with the specified id. Returns null if the id does not exist. |
Geri dönüş değeri
Tip | Açıklama |
düğüm listesi | Bir HTMLCollection . Belgedeki tüm <embed> öğeleri. Kaynak kodunda göründükleri gibi sıralanır. |
Tarayıcı Desteği
document.embeds
bir DOM Düzey 3 (2004) özelliğidir.
Tüm tarayıcılarda tam olarak desteklenir:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | 9-11 | Yes | Yes | Yes | Yes |