OSName Property

Type: String

OSName returns the operating system installed on a visitor's machine. Possible return values include "WinXP", "Win2000", "Windows Server 2003", "WinME", "WinCE", "Windows Vista", "MacOSX", "Linux", "SunOS", and "IRIX64".

 

Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Enterprise Edition of BrowserHawk.

 

Example:

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "OSName"

bhObj.GetExtPropertiesEx

%>

<html>OSName is:

<%

if bhObj.OSName = -1 OR bhObj.OSName = -2 then

'Fall back to use the Platform property

PropVal = bhObj.Platform

else

Propval = bhObj.OSName

end if

response.write PropVal

%>

</html>

 

Special notes for this property:

 

See Also:

Additional Steps Required for Java based properties

Detecting Operating System Details

OSArch Property

OSVersion Property

Platform Property