|
|
|
|
|
| | |
|
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Platform identification |
From: |
David |
Date: |
1/12/2001 1:30:05 PM |
IP: |
63.72.108.155 |
Hey, how can I identify the platform that a browser is running on when it hits my page? I am using this code:
<% Set bc = Server.CreateObject
("MSWC.BrowserType") %>
and then setting a variable in a java script like this:
var platformName;
platformName = "<%= bc.platform %>";
and then if I print the value with this:
document.write("<%= bc.platform %>");
to check it it gives me "unknown" on Netscape for windows, Netscape for Mac, and for IE for Mac. How do I access this information. I need to be able to set a condition based on it being on a Mac. Thanks.
|
|
|
|
|
|
|
|
|
|
|
|
|