Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect if browser is below IE8?

I hate IE, I only want to display an out-of-date browser notification to IE8 IE7 IE6 IE5.5 etc. users on my site :)

I want to detect if browser version number is below IE8. I am open to Javascript, HTML, PHP, jQuery. How could I do this?

like image 772
Akos Avatar asked Dec 22 '22 09:12

Akos


1 Answers

You can use this mark-up in your HTML:

<!--[if lt IE 8]>
<p>You aren't using a recent version of Internet Explorer.</p>
<![endif]-->

Reference.

like image 77
trojanfoe Avatar answered Feb 23 '23 20:02

trojanfoe