![]() |
VOOZH | about |
The DOM embeds collection property in HTML is used to return the collection of all embedded elements. The elements in the collection are sorted that appear in the source code. This property is used for read-only.
Syntax:
document.embeds
Property: This property contains a value length that returns the number of elements in the document.
Methods: The DOM embeds collection contains three methods which are given below:
Return Value: An HTMLCollection Object, representing all <embed> elements in the document. The elements in the collection are sorted as they appear in the source code
Example: This example demonstrates the use of the DOM embeds collection to get the URL for the embedded flash file.
Output:
Accepted Properties:
Example: This example demonstrates the use of DOM embeds collection to get the total count of embed elements.
Output:
Supported Browsers: