Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Browser type

Status
Not open for further replies.

TurboSRT4

Programmer
Nov 23, 2009
47
US
Hello all.... I am a rookie programer and I am learning javascript as needed I am fairly good with perl....my site will only work correctly with IE. Is there a way to detect browser and if its not ie to use a confirm box to redirect and open a new window with my site in IE thank or any way to detect browser and if not ie then just launch a new window in ie thank you
 
Hi

TurboSRT4 said:
Is there a way to detect browser
Yes, but browser detection is deprecated practice. Feature detection is highly recommended.

Anyway, in your case conditional comments will be enough. See ChrisHunt's comment in thread253-1569895.
TurboSRT4 said:
open a new window with my site in IE
And if no Explorer is found, install it ?

Anyway, fortunately such thing is impossible.


Feherke.
 
my site will only work correctly with IE

I would suggest you recode you site to be standards complient so that it works as expected on all browsers - including newer releases of IE which could easily drop old features.

Propriety code/technioques should only be used on internal corporate sites whre you can have resonable control over you useres (& ebven then only if 100% necessary)
 
I'd like to echo the sentiments by previous posters:

Unless this is an intranet site, you should really strive to make it cross-browser compatible - it's really not hard to achieve, and any good developer should be able to do so.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
hey thanks guys, what happend was, I was working on my site at home, my girlfriend was at my parents i told her to go check out, now keep in mind my girlfriend seems to slowly trading her brain for a big fat gut for the last ten years.thats a long time on a payment plan so she has very little brain left....Anyways she could not get anything to work in firefox so i thought it was a programing issue, i found out later after installing firefox myself the correct plugins were not installed in firefox. So it works gret on both! thanks guys
 
I hope for your sake your girlfriend dosent read tek-tips (although from the sound of things i think you are safe)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top