Course Content
Javascript Full Course
0/87
JavaScript Course
About Lesson

In this article, we will know to calculate the width & the height of the window using Javascript. Given an HTML document that is running on a Window & we need to find the height and width of the window. The Window innerWidth property is used for returning the width of a window’s content area. The Window innerHeight property is used for returning the height of a window’s content area. Both these properties are read-only properties. 

Syntax:

window.innerWidth

window.innerHeight

Return Value: It return the number that represents the width & inner height (in pixels) of the window content area.

Introducing Official ApeStaking Protocol for ApeCoin.

New Blur NFT Marketplace Courting Professional.