TCH-Tim Posted December 12, 2005 Share Posted December 12, 2005 I'm building a site and I don't care if IE users can see it properly (for now, maybe), but I'd like to tell them that they aren't going to see it properly unless they switch to a more compliant browser. Is there some kind of script I can put in my headers that will allow me to notify the user that he should switch from IE, and then if he wants, let him continue on to the site? Quote Link to comment Share on other sites More sharing options...
GroovyFish Posted December 12, 2005 Share Posted December 12, 2005 Hi Tim, You might try PMing TCH family member Borfast (Raul), I know that he used to have a script on his site that would notify IE users that they needed to use a different browser to view his site. Quote Link to comment Share on other sites More sharing options...
abinidi Posted December 12, 2005 Share Posted December 12, 2005 Yes, and its probably easier than you think. Depending on if you are using javascript or php or whatever, you basically just have the script check for which browser the user is using, and then you have a simple If/else check. If the browser is IE, show warning. Else show the normal page to everybody else. You should be able to find a quick script that will get the browser name (depending on your scripting language), and then you can write the if/else test. Quote Link to comment Share on other sites More sharing options...
abinidi Posted December 12, 2005 Share Posted December 12, 2005 Oh, and I've seen Raul's site, and he did a good job with it, so like GroovyFish said, if you have specific questions, I'm sure he'd be happy to help. Quote Link to comment Share on other sites More sharing options...
curtis Posted December 12, 2005 Share Posted December 12, 2005 (edited) A simple Javascript like ><script LANGUAGE = "JavaScript"> <!-- if (navigator.appName=='Microsoft Internet Explorer') {myWindow=window.open(); myWindow.location.href="http://your_domain/redirect_page.htm"} //--> </SCRIPT> should work. Change the url to whatever page is ie only. Insert the script between the <head> </head> tags Edited December 12, 2005 by curtis Quote Link to comment Share on other sites More sharing options...
borfast Posted December 13, 2005 Share Posted December 13, 2005 (edited) Hey Tim, what a coincidence, I did exactly what you described in my site If you visit http://borfast.com using IE, you will be redirected to http://borfast.com/msie, which warns you about IE's problems and that it may not work well with my site. I used to use Gary White's PHP browser detection class embedded into every page of my site and recently, since I moved my site to Drupal, I made a Drupal module for it. Hope this helps! Edited December 13, 2005 by borfast Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.