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.
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!