Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

innerWidth

The innerWidth property of the Window object returns a number that represents the width of the document window. The outer dimensions represent the browser software window, while the inner dimensions represent the document window nested inside the browser software.

Syntaxwindow.innerWidth
alert( window.innerWidth );

JavaScript

Properties

bodycalleeclosedcookiedocumentdropEffecteffectAllowedfilesframeElementframeshistoryInfinityinnerHeightinnerHTMLinnerWidthlengthlocationlocationbarnameNaNnavigatornullopenerouterHeightparentprototypescreenstatetextContentundefined