VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-window-innerwidth-property/

⇱ HTML DOM Window innerWidth Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM Window innerWidth Property

Last Updated : 3 Jul, 2024

 The Window innerWidth property is used for returning the width of a window's content area. It is a read-only property and returns a number which represents the width of the browser window's content area in pixels.

Syntax

window.innerWidth

Return Value:

It returns a number that represents the browser window's content area width in pixels.

Example: This example shows the use of "window.innerWidth" property.

Output:

👁 innerWidth
Output

Supported Browsers

  • Google Chrome 1
  • Edge 12
  • Internet Explorer 9
  • Firefox 1
  • Opera 9
  • Safari 3
Comment
Article Tags: