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