website - Die if visitor's browser is Internet Explorer -


is possible display message in popup window contains 1 button visitor click , close website? need ie visitors.

edit: found make use of, until have time optimize css ie.

<!--[if ie]>   <style>     body { display: none; background: url('images/notice.jpg') top left no-repeat; }   </style> <![endif]--> 

simple answer: not really.

detailed answer: detecting browser used visitor, need information user agent header. information supplied user, cannot rely on it, user might have sent user agent header.

another way detect browser used visitor performing feature check, browsers implement additional stuff. internet explorer has document.all field accessible javascript (at least older versions have). there might other browsers out there, have field, too. therefore, presence of field not mean browser internet explorer.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -