Return Value: It return the number that represents the width & inner height (in pixels) of the window content area.
Example 1: This example uses window.innerHeight and window.innerWidth property to get the height and width of the window. The innerHeight property is used to return the height of the window and the innerWidth property is used to return the width of the window.
<title>Calculate Width and Height of the Window</title>
Please Login to comment...