Hi,
I need to show text on IE only and not show it for the rest of the browsers. Any pointers to that? I looked around couldn't find it.
Hi,
I need to show text on IE only and not show it for the rest of the browsers. Any pointers to that? I looked around couldn't find it.
e.g.
<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->
(There are operators in the condition for less than, less than or equal, ... and you can chain branches to provider different behaviours for different versions see here for full details.)
You have IE conditional comments or you can do it via javascript detect browser agents or with javascript frameworks such as jQuery
if (jQuery.browser.msie) {
// do something IE specific
}
Maybe in JS:
<script type="text/javascript">
function detectBrowser(){
var browser=navigator.appName;
if (browser=="Microsoft Internet Explorer"){
document.write("IE sux");
}
}
</script>
You need to detect if current browser is IE and show content only in this case.
The smallest script for IE detecting:
if(-[1,]) {
alert("Not IE!");
}