/    Sign up×
Community /Pin to ProfileBookmark

Try catch block

Is there a way I could detect if someone had a particular program
installed on their computer? I was thinking of a javascript try catch block
but I don’t know what error I am catching. Basically I want to have this link:

<a href = “aim:goim?screenname=”;>Open AOL Instant Messenger</a>

but I want to catch if they don’t have it installed
try catch would be best, but I don’t know what error I’m catching.

thanks, any help is great

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallApr 22.2005 — Javascript can't see anything outside of the current web page and its associated cookies so it will not be able to tell anything about what programs are installed. There are ways to check if a particular plugin is installed in some browsers but the code is browser specific and not all browsers support such tests.
Copy linkTweet thisAlerts:
@7studApr 22.2005 — Would you have javascript enabled, if a web page could go sniffing around your computer looking at whatever is there? What would you do when the police came knocking on your door asking about the titles:

"My program that simulates how I am going to rob the Bank located at Maple and Elm at 11am on June 2, 2005."

"My tax evasion program"

"My pyramid scheme program that has enabled me to swindle $2M worldwide since last week."

"My International Drug Empire Accounting Program"
×

Success!

Help @mike314 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...