Forum Moderators: open
How in Javascript do I do this...
if useragent = msie (but does not contain opera)
{
}
else {}
Posted here for those who may need it in the future ... detecting IE but excluding Opera Spoofing as IE...
<html>
<head>
</head>
<body><script>
var msie = ((navigator.appVersion.indexOf("MSIE")!= -1)&&!window.opera)? true : false;
if (msie)
{ document.writeln('This IS IE'); }
else
{ document.writeln('This is NOT IE'); }
</script></body>
</html>