/    Sign up×
Community /Pin to ProfileBookmark

Identify Windows XP

Hi ,
I have used tag classid=”clsid:8AD9C840-044E-11d1-B3E9-00805F499D93″ in my applet. but this some how is now not working in Windows XP machine . ie, m unable to view the applet. But it is working in Windows 2000. If i comment it it wont work in Windows 2000.
I want to isolate this code usinf _info.indexOf(“Win”), but this is true for all windows OS. Am unable to run my applet in both Windows XP & 2000.
plz help
Thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@LeruraMar 16.2006 — isXP=(navigator.userAgent.indexOf('Windows NT 5.1') !=-1)

is2K=(navigator.userAgent.indexOf('Windows NT 5.0') !=-1)
×

Success!

Help @nimishm123 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...