You are here: Reference > JavaScript > client-side > browser > methods > refresh (plugins)

refresh method (plugins)

Browser support:
Refreshes the plugins collection to make the newly installed plugins available.

Syntax:

object.refresh ([reloadDocuments]);
You can find the related objects in the Supported by objects section below.

Parameters:

reloadDocuments
Optional. Boolean value that specifies whether all open documents that contain plugins should be reloaded.
One of the following values:
false
Default. No need to reload documents.
true
Documents should be reloaded.

Return value:

This method has no return value.

Example HTML code 1:

This example illustrates the use of the refresh method:
<head>
    <script type="text/javascript">
        function UpdatePlugins () {
            if (navigator.plugins) {
                navigator.plugins.refresh ();
                alert ("The plugins collection is updated!");
            }
            else {
                alert ("Your browser does not support this example!");
            }
        }
    </script>
</head>
<body>
    <button onclick="UpdatePlugins ();">Update plugins!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content