javascript: getting OUTER (real) browser window height?
i know there is s开发者_如何学Gotuff like window innerHeight etc. Can I retrieve the real window height of my browser (with all it's toolbars etc.)?? crossbrowser if possible?
regards matt
In most browsers, you can use window.outerWidth
and window.outerHeight
.
However, it's not generally possible in IE. It used to be possible to use a hacky solution involving window.resizeTo
but that method no longer works in various situations, including whenever tabbed browsing is enabled.
精彩评论