/    Sign up×
Community /Pin to ProfileBookmark

JSCRIPT Browser Check

Can someone help with the code to do a browser check in JS. Here is my problem I have a webpage on my website (on an intranet) that needs to be viewed in IE. So I want to do a browser check that will do nothing if IE is being used. If Netscape is being used I want it to open a new window with IE, to the same web page. If possible I would like it to also close the netscape window. If that is not possible then I would like a message window to tell the user to use IE. Thanks for the help….

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@VladdyDec 12.2002 — Man, you are persistent.

First. you can not execute programs from javascript. Therefore you can not open explorer from netscape.

Second, why don't you design your site to standards not browser, huh?
Copy linkTweet thisAlerts:
@nklein75authorDec 12.2002 — I just need this one page veiwed in IE. Thats it. The rest of the site is fine for all browsers.
Copy linkTweet thisAlerts:
@AdamGundryDec 12.2002 — If you must find out what browser the user is running, you can use the navigator object.

Check out [URL=http://www.webreference.com/js/column6/browser.html]Webreference[/URL] for more information.

Adam
Copy linkTweet thisAlerts:
@hfraserDec 13.2002 — the best thing i can say is that the end-user will view your page in what ever he

chooses! and that if this page is so important you should work on it to be cross

browser compatible!

my2 cents
×

Success!

Help @nklein75 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,
)...