2

I have a question and maybe it is duplicate in this site but i can't find it!

I want to display this message

"Please open this website in firefox and you can download Mozilla Firefox from here"

when users open my web in IE.

How do it?

Thanks in advance.

bizzehdee
  • 20,289
  • 11
  • 46
  • 76
Hamid Talebi
  • 1,298
  • 2
  • 24
  • 42

2 Answers2

2

you can use a conditional check

<!--[if IE]>
please open this web in firefox and you can download Mozilla Firefox from <a href='here'>here</a>
<![endif]-->

or you could try adding a js/programming check

Class
  • 3,149
  • 3
  • 22
  • 31
1

If you prefer Javascript, you can check the userAgent.

if (navigator.userAgent.indexOf('MSIE')>0) {
    document.write('do something');
};

MSIE is the indicator for Microsoft Internet Explorer

Harryman
  • 62
  • 3