SVG Document.image Property
The SVG Document.image property returns the collection of images in the current HTML document.
Syntax:
var imageCollection = document.images
Return value: This property returns the collection of images in the current HTML document.
Example:
HTML
<!DOCTYPE html>
< html >
< body >
cdn-uploads/20200817185016/gfg_complete_logo_2x-min.png">
< svg width = "700" height = "500"
< script >
console.log(document.images);
</ script >
</ svg >
</ body >
</ html >
|
Output:
Last Updated :
30 Mar, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...