how can i possibly detect if the browser used by a visitor is outdated or Internet explorer and display a banner at the of the page which will tell the visitor to upgrade its browser..
Asked
Active
Viewed 2,198 times
1
-
possible duplacte of http://stackoverflow.com/questions/348202/display-a-message-when-a-browser-is-unsupported – franchez Feb 06 '14 at 13:16
-
Outdated for what ? Html5 ? – Clément Andraud Feb 06 '14 at 13:17
-
1Frankly, I would not do this...it's pretty rude. Perhaps the user CAN'T update or change browsers...some can't you know. – Paulie_D Feb 06 '14 at 13:19
-
I know, but i have to because of the functionality of my site won't work on older browsers.. – user3258603 Feb 06 '14 at 14:37
3 Answers
0
<!--[if lt IE x]>
<img src="https://i.stack.imgur.com/I1GAk.png" alt="" />
<![endif]-->
You can use this code as it is. Replace x by IE version you want to "outdate".

franchez
- 567
- 1
- 7
- 20
-
1Note that as of IE10 conditional comments are not supported and will always "return false", even ` – Niet the Dark Absol Jun 13 '14 at 10:39
0
Here I found very sophisticated way to tell user about outdated-browsers:

brasofilo
- 25,496
- 15
- 91
- 179

Kushal Jayswal
- 925
- 1
- 12
- 31
-1
If you want to detect if a browser support X or Y feature of HTML5 or CSS3, you have modernizr
you can generate a script HERE for detect just old browser and propose an upgrade

Clément Andraud
- 9,103
- 25
- 80
- 158