Type: Integer
Returns the width of the visitor’s screen size resolution. For example, a visitor with their screen resolution set to 1024x768 would return 1024.
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 screen size detected. In this case the values that cannot be determined will be 0. You should check for 0 and use a default value of your choice. For example, if Width comes back 0 you may wish to use 800 as a default (assume a screen size of 800x600).
C# Example:
<%
ExtendedOptions options = new ExtendedOptions();
options.AddProperties("Height, Width"); // as a shortcut you can use "screensize" instead of "Height, Width"
ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);
%>
<html>
Screen size: <% Response.Write(extBrow.Width + " wide X " + extBrow.Height + " high"); %>
</html>
See Also: