Availability: |
| |||||
Property/method value type: | Boolean or String primitive | |||||
JavaScript syntax: | - | myWindow.offScreenBuffering | ||||
- | myWindow.offScreenBuffering = aSetting | |||||
- | offScreenBuffering | |||||
- | offScreenBuffering = aSetting | |||||
Argument list: | aSetting | A new value to control this functionality |
This property controls how screen updates are accomplished. This is especially useful with DHTML-based animation. An off-screen buffer is used to draw the new window contents and then copy it over the existing content when it is complete. This is much nicer to look at than the effects you get with a non-buffered redraw which clears the screen first and then draws the entire page in front of you.
The available settings are:
Boolean true - Activate off-screen buffering
Boolean false - Deactivate off-screen buffering
String "auto" - Let the browser decide for itself
In general, MSIE accomplishes slightly more attractive redraws with this facility enabled than Netscape Navigator. However, new versions of Mozilla 5 and Netscape 6 may surpass the MSIE version 5 support.
Enabling this facility will slightly decrease CPU performance and consume more memory since a copy of the onscreen window needs to be maintained in the application memory.
See also: | Frame object, Window object |
Prev | Home | Next |
Window.netscape | Up | Window.onblur |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |