How to detect window version ?
Hi,
Is there any method to detect window version or window system path using
the script language (VBScript, JavaScript or JScript)?
Thanks,
Ling
[170 byte] By [
Lisa Tang] at [2007-11-9 16:24:35]

# 1 Re: How to detect window version ?
Hi,
Here it is:
var agt = navigator.userAgent.toLowerCase();
var nn = ((agt.indexOf('mozilla') != -1) &&
((agt.indexOf('spoofer') == -1) &&
(agt.indexOf('compatible') == -1)));
var ie = (agt.indexOf("msie") != -1);
var mac = (agt.indexOf("mac") != -1);
var sun = (agt.indexOf("sunos") != -1);
var win = ((agt.indexOf("win") != -1) || (agt.indexOf("16bit") != -1));
Regards,
Lisa
"Lisa Tang" <ltang7@yahoo.com> wrote:
>
>Hi,
>
>Is there any method to detect window version or window system path using
>the script language (VBScript, JavaScript or JScript)?
>
>Thanks,
>Ling