Screen 'bufferDepth' Example : Screen : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Screen »

 

Screen 'bufferDepth' Example



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

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Screen