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.


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:
String that specifies that the usage of the off-screen buffering mode depends on the browser.
Boolean that forbids the off-screen buffering mode.
Boolean that allows the off-screen buffering mode.
Default: auto.

Example HTML code 1:

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

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content