Click to See Complete Forum and Search --> : JSCRIPT Browser Check
nklein75
12-12-2002, 08:48 AM
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....
Vladdy
12-12-2002, 09:00 AM
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?
nklein75
12-12-2002, 09:06 AM
I just need this one page veiwed in IE. Thats it. The rest of the site is fine for all browsers.
AdamGundry
12-12-2002, 01:23 PM
If you must find out what browser the user is running, you can use the navigator object.
Check out Webreference (http://www.webreference.com/js/column6/browser.html) for more information.
Adam
hfraser
12-12-2002, 11:27 PM
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