'bufferDepth' Example : bufferDepth « Javascript Properties « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Properties » bufferDepth 
'bufferDepth' Example

    
<html>
<head>
<script language="JavaScript">
    function function1() {
        if (navigator.appName.indexOf("Microsoft"!= -1) {
            alert("The buffering for this screen is "+screen.bufferDepth);
        else {
            alert(" no default for buffering depth")
        }
    
    function function2() {
        screen.bufferDepth = -1;
        alert("The buffering depth for this screen has been changed to "+screen.bufferDepth)
    
</script>
</head>
<body>
<input type="button" value="No Buffering" onClick="function1();">
<input type="button" value="Same as Color Depth" onClick="function2();">
</body>
</html>

    
      
      
Related examples in the same category
1.'bufferDepth' Syntax and Note
2.'bufferDepth' Possible Values
3.'bufferDepth' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.