View Full Version : IE 6+ only
robertsont
08-17-2004, 07:55 AM
I would like a page to only display if it ibeing used with IE 6+; is it possible to have some script that will return a message asking the user to upgrade their version to view the page if they are running a lower version?
Regards,
Tom
¥åßßå
08-17-2004, 11:29 AM
<!--[if lt IE 6]>
Please update your explorer
<![endif]-->
Found on this website (http://www.quirksmode.org/index.html?/css/contents.html)
Of course, I'll always be shown this message as I use FireFox ;)
Jon Hanlon
08-17-2004, 10:22 PM
Do a google on "browser sniffer"
http://www.google.com/search?hl=xx-elmer&ie=UTF-8&q=browser+sniffer&lr=lang_en
sillycheese
10-15-2004, 09:15 AM
Where in the page does that code go?
thanks.
ElectricSheep
10-15-2004, 12:00 PM
Here is a possible solution using JavaScript :
if(navigator.userAgent.indexOf("MSIE 6")<0)
{
alert("You are not IE 6");
}
sillycheese
10-15-2004, 12:39 PM
I take it that code would go in a sniffer???
ElectricSheep
10-15-2004, 12:56 PM
Just put it in <script> tags in you html page or in a separate .js file and reference it like so from your html page:
<script src="myScript.js" language="JavaScript" type="text/javascript">
</script>
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.