开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜