Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8454043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:55:23+00:00 2026-06-10T11:55:23+00:00

I examined the window object in Firebug. window.innerWidth and window.outerWidth are both 1230 .

  • 0

I examined the window object in Firebug. window.innerWidth and window.outerWidth are both 1230.

What is the difference between these two values?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:55:24+00:00Added an answer on June 10, 2026 at 11:55 am

    From Mozilla Developer Network:

    window.outerWidth

    window.outerWidth gets the width of the outside of the browser window.
    It represents the width of the whole browser window including sidebar
    (if expanded), window chrome and window resizing borders/handles.

    and

    window.innerWidth

    Width (in pixels) of the browser window viewport including, if
    rendered, the vertical scrollbar.

    This is ostensibly how they work. A test page, however, shows they are both the same no matter how I resize them in Firefox 14.0.1 on Ubuntu 12.04. In Chromium, they return numbers that are 8 pixels different. Doing a bit of dead reckoning, it appears the window chrome on that particular app is about 4 pixels on the left side and 4 pixels on the right side and that this difference is being correctly picked up in that browser.

    Code for the test page I used:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <title>12066093</title>
        <meta charset="utf-8">
    </head>
    <body>
    <div style="width:2000px; height: 2000px;">hi</div>
    <script type="text/javascript">
        alert("window.innerWidth: " + window.innerWidth + "\nwindow.outerWidth: " + window.outerWidth);
    </script>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Examining Zend Framework, I found that all setter methods (of those I’ve examined) return
I examined how ExtJs renders form's fields in dom. To change fieldLabel after field
I am building a COM object in x86 assembly using NASM. I understand COM
I have examined Dean Edward's onload post and have a question: what's wrong with
I like to pop out results in a window so that they're easier to
I have two text box. If 1 of the textbox.text is empty, the MessageBox
I am passing values in a URL query string that are interpreted by JavaScript
I examined a javascript exception in Google Chrome. And I noticed the functions get
The goto statement has been examined at great length in several SO discussions (see
I noticed the existance of cid parameter in every product page I examined in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.