May 4, 2000 - Window Sizing | WebReference

May 4, 2000 - Window Sizing

Yehuda Shiran May 4, 2000
Window Sizing
Tips: May 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Internet Explorer supports height and width, while Navigator uses innerHeight and innerWidth for the same purpose. Navigator also supports the outerHeight and outerWidth features, which specify the dimensions of the outer boundary of the window (including the titlebar, the scrollbars, and other operating system elements). Since these features don't have equivalent Internet Explorer features, we'll use height, width, innerHeight, and innerWidth instead. Each browser ignores the other set of features, so we'll specify all four of them when we create a new window:

window.open("dimensions.html", "_blank", "height=150,innerHeight=150,width=200,innerWidth=200");