Sunday, October 12, 2025
HomeLanguagesJavascriptHTML DOM document plugins Property

HTML DOM document plugins Property

The HTML DOM plugins property returns an HTMLCollectionobject containing one or more embed elements or plugins of the current document. This is a read-only property.

Syntax:

objects = document.plugins

Return value:

An HTMLCollection object, or “null” object,if there are no embedded elements or plugins in the document.

Example: This example shows how to get plugins of the document.

HTML




<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML DOM document
        plugins property
    </title>
</head>
 
<body>
    <h1>neveropen</h1>
    <embed src="hello.PNG">
    <embed src="hello.PNG">
    <br>
 
    <button onclick="get()">
        CLICK HERE
    </button>
     
    <script type="text/javascript">
        function get() {
            console.log(document.plugins);
        }
    </script>
</body>
 
</html>


Output:

Before Click the Button:

After Click the Button:

Supported browsers:

  • Google Chrome 64
  • Edge 12
  • Internet Explorer 4
  • Firefox 1
  • Opera 51
  • Safari 10.1
RELATED ARTICLES

Most Popular

Dominic
32352 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6720 POSTS0 COMMENTS
Nicole Veronica
11885 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11941 POSTS0 COMMENTS
Shaida Kate Naidoo
6840 POSTS0 COMMENTS
Ted Musemwa
7105 POSTS0 COMMENTS
Thapelo Manthata
6795 POSTS0 COMMENTS
Umr Jansen
6795 POSTS0 COMMENTS