You are here: Reference > JavaScript > client-side > HTML DOM > properties > offscreenBuffering (window)

offscreenBuffering property (window)

Browser support:
Specifies or returns whether the off-screen buffer needs to be used for drawing.
When buffering is used, drawing occurs in the off-screen buffer first and when finished, the contents of the buffer are made visible.

Syntax:

object.offscreenBuffering;
You can find the related objects in the Supported by objects section below.
This property is read/write.

Possible values:

String or Boolean value that indicates the state of off-screen buffering.
One of the following values:
auto
String that specifies that the usage of the off-screen buffering mode depends on the browser.
false
Boolean that forbids the off-screen buffering mode.
true
Boolean that allows the off-screen buffering mode.
Default: auto.

Example HTML code 1:

This example illustrates the use of the offscreenBuffering property:
<head>
    <script type="text/javascript">
        function TestBuffering () {
            alert (window.offscreenBuffering);
        }
    </script>
</head>
<body>
    <button onclick="TestBuffering ()">Get buffering mode</button>  
</body>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content