Skip to content
Related Articles

Related Articles

Improve Article

SVG Document.image Property

  • Last Updated : 03 Nov, 2020

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" 
        xmlns="http://www.w3.org/2000/svg">
          
        <script>
            console.log(document.images);    
        </script>
    </svg>
</body>
  
</html>

Output:

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :