The Screen.height read-only property returns the height of the screen in CSS pixels.
Screen.height
MDN Reference