WidthAvail Property (.NET)

 

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:

 

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:

Width Property (.NET)

Height Property (.NET)

HeightAvail Property (.NET)