Type: Integer
Returns the height of the visitor’s browser window. For example, a visitor with their screen resolution set to 1024x768 may return 725.
This property is different than the Height property because HeightAvail provides information on the actual amount of height available in the browser window itself. Items such as task bars, scroll bars, browser navigation, and other such screen elements typically account for the difference between HeightAvail and Height.
Note: You must call the GetExtPropertiesEx method before checking the value of this property, unless the browser is a fixed size device, such as the case for WebTV and handheld phones. This property requires the Professional or Enterprise Edition of BrowserHawk.
Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.
Example:
<%
set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "browsersize" 'this is the equivalent of "heightAvail, widthAvail"
bhObj.GetExtPropertiesEx
%>
<html>
Your screen size is: <% =bhObj.widthAvail%> X <% =bhObj.heightAvail%>
</html>
Special notes for this property:
Not all browsers are capable of having their browser window size detected. You should test this property for a value of 0 and use a predetermined default value appropriate for your site if the result is 0.
If the user’s JavaScript is disabled this property will not be available.
See Also: