You are here: Reference > JavaScript > client-side > browser > methods > collect (opera)

collect method (opera)

Browser support:
Tries to initiate the JavaScript garbage collection.

Syntax:

object.collect ( );
You can find the related objects in the Supported by objects section below.

Return value:

This method has no return value.

Example HTML code 1:

This example illustrates the use of the collect method:
<head>
    <script type="text/javascript">
        window.opera.collect ();
    </script>
</head>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content