var h = w.contentHeightThe "contentHeight" and "contentWidth" properties return the actual width and height of the window's inner displayFrame in pixels, i.e. the window's width and height minus borders and titlebar. After rezising these values are changed too. A very common use of these values is setting the image size of a map request to MapServer.