You are here: Reference > JavaScript > client-side > HTML DOM > properties > offscreenBuffering (window)
offscreenBuffering property (window)
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:
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:
|
||||
<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?
|
Supported by objects:
External links:
User Contributed Comments