Home  >  Article  >  Web Front-end  >  What does the availHeight property in JavaScript mean?

What does the availHeight property in JavaScript mean?

WBOY
WBOYforward
2023-09-03 15:57:091249browse

What does the availHeight property in JavaScript mean?

Use the screen.availHeight property to return the width of the user's screen. Results will be expressed in pixels and do not include taskbar functionality.

Example

You can try running the following code to see how to use the screen.availHeight property in JavaScript:

Demo

<!DOCTYPE html>
<html>
   <body>
      <script>
         document.write("Height of the screen: "+screen.availHeight);
      </script>
   </body>
</html>

The above is the detailed content of What does the availHeight property in JavaScript mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete