Skip to content

JavaScript outerWidth | Property

Use JavaScript outerWidth Property to find the outer width of the browser window, including all interface elements (like toolbars/scrollbars). This is read-only property and returns the width of the outside of the browser window.


JavaScript outerWidth example

Simple example code.

<!DOCTYPE html>
    let width = window.outerWidth;
    let w = outerWidth;;

    console.log('Outer Width', width)



JavaScript outerWidth Property

Do comment if you have any doubts or suggestions on this JS Property topic.

Note: The All JS Examples codes are tested on the Firefox browser and the Chrome browser.

OS: Windows 10

Code: HTML 5 Version

Leave a Reply

Your email address will not be published. Required fields are marked *