Mega Code Archive

 
Categories / JavaScript Tutorial / Screen
 

Screen height

The height property of the screen object accesses the height of the user's screen in pixels. <html>     <script language="JavaScript1.2">     <!--     document.write("The height of this user's screen is <b>");     document.write(screen.height + '</b> pixels');     -->     </script> </html>