HTML DOM Document embeds
Example
Number of <embed> elements in a document:
Description
The embeds
property returns a collection of all <embed> elements in the document.
The embeds
property is read-only.
Warning
Most browsers no longer support embedded Applets or Plug-ins.
Embedded ActiveX controls are no longer supported in any browsers.
Shockwave Flash has also been turned off in modern browsers.
Suggestions
To embed a picture, use the <img>
tag.
To embed HTML, use the <iframe>
tag.
To embed video or audio, use a <video>
or <audio>
tag.
See Also:
Syntax
Properties
Methods
Returns
null
if the index is out of range.
Returns
null
if the index is out of range.
Returns
null
if the id does not exist.
Return Value
All <embed> elements in the document.
Sorted as they appear in the source code.
Browser Support
document.embeds
is a DOM Level 3 (2004) feature.
It is fully supported in all modern browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | 11 |