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.


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


Optional. Boolean value that specifies whether all open documents that contain plugins should be reloaded.
One of the following values:
Default. No need to reload documents.
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:
    <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!");
    <button onclick="UpdatePlugins ();">Update plugins!</button>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content