Type: Integer
Returns the width of the visitor’s browser window. For example, a visitor with their screen resolution set to 1024x768 may return 982.
This property is different than the Width property because WidthAvail provides information on the actual amount of width 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 WidthAvail and Width.
Note: Use of this property requires the Professional or Enterprise Edition of BrowserHawk.
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.
C# Example:
<%
ExtendedOptions options = new ExtendedOptions();
options.AddProperties("HeightAvail, WidthAvail"); // you can use "browsersize" instead of "HeightAvail, WidthAvail"
ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);
%>
<html>
Available browser window size: <% Response.Write(extBrow.WidthAvail + " wide X " + extBrow.HeightAvail + " high"); %>
</html>
See Also: