/    Sign up×
Community /Pin to ProfileBookmark

onClick w/ browser detection

I am looking for code that when a user clicks on a href and the browser used is NN6+ or IE4+ it goes right to the link, but if they are using an older version of that it will still take them to that link but a new window will open with a statement saying the page will not work with their current browser.

Thanks in advance for any help.

Steve

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisFeb 20.2003 — You should put the detection code in the page so that if they get to it from another way the message will appear.
Copy linkTweet thisAlerts:
@CharlesFeb 21.2003 — [font=georgia]You should write your page in HTML 4.01 Strict (http://www.w3.org/TR/html4/) and folloing the Web Content Accessibility Guidelines 1.0 (http://www.w3.org/TR/WCAG10/) and then your page will work on all browsers.[/font]
×

Success!

Help @smdemo 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.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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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