availWidth() and availHeight() property of the Screen Object in javascript

availWidth() and availHeight() property of the Screen Object in javascript

 
availHeight property is used to return the height of the visitor's screen.
  1. <html>  
  2.   
  3.    <body>  
  4.       <script type="text/javascript">  
  5.       document.write("The Height of the Screen is: " + screen.availHeight);  
  6.       </script>  
  7.    </body>  
  8.   
  9. </html> 
availWidth property is used to return the width of the visitor's screen.
  1. <html>  
  2.   
  3.    <body>  
  4.       <script type="text/javascript">  
  5.       document.write("The Width of the Screen is: " + screen.availWidth);  
  6.       </script>  
  7.    </body>  
  8.   
  9. </html>