HTML DOM Document images
HTML DOM Document images Property
The images property is used to return collection of all img elements in a given document. It is read-only property and returns HTMLCollection. Elements in a collection can be accessed by their index number which starts at 0.
Syntax:-
Its syntax is:- document.images
Return:-
Its return is:- all img elements in the document
Further Explanation:-
Method | Description |
[index] | Returns element with the specified index. |
item(index) | Returns element with the specified index. |
namedItem(id) | Returns element with the specified id. |
Properties are:-
Property | Description |
length | The number of img elements in the collection. |