1

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..

https://i.stack.imgur.com/I1GAk.png

user3258603
  • 149
  • 2
  • 17

3 Answers3

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
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