P
petermichaux
Hi,
I would like to display a message to Internet Explorer clients to
encorage them to get Firefox. Yes they may like Internet Explorer but
it is my site
http://www.explorerdestroyer.com/ uses navigator.userAgent
If ((ua.indexOf('msie') != -1) &&
(ua.indexOf('opera') == -1) &&
(ua.indexOf('webtv') == -1)) {
/* show message to IE users*/
}
I'm sure there is a better way to do this general detection. I vaguely
remember seeing a post with a huge long if conditional testing many
different objects to determine a very specific version of IE. I think
Richard Cornford wrote it. I just spent an hour (literally!) searching
the archives and couldn't find the post unfortunately. It may have been
along the lines of the following but very extended.
if (window.ActiveXObject &&
document.all) {
/* show message to IE users*/
}
I wish I had bookmarked that post because I am generally curious to
learn more about different versions of Internet Explorer and which
features distinguish it.
I would like to detect IE 5 and newer. Any suggestions or anyone know
about this post?
Thank you,
Peter
I would like to display a message to Internet Explorer clients to
encorage them to get Firefox. Yes they may like Internet Explorer but
it is my site
http://www.explorerdestroyer.com/ uses navigator.userAgent
If ((ua.indexOf('msie') != -1) &&
(ua.indexOf('opera') == -1) &&
(ua.indexOf('webtv') == -1)) {
/* show message to IE users*/
}
I'm sure there is a better way to do this general detection. I vaguely
remember seeing a post with a huge long if conditional testing many
different objects to determine a very specific version of IE. I think
Richard Cornford wrote it. I just spent an hour (literally!) searching
the archives and couldn't find the post unfortunately. It may have been
along the lines of the following but very extended.
if (window.ActiveXObject &&
document.all) {
/* show message to IE users*/
}
I wish I had bookmarked that post because I am generally curious to
learn more about different versions of Internet Explorer and which
features distinguish it.
I would like to detect IE 5 and newer. Any suggestions or anyone know
about this post?
Thank you,
Peter