The shortest way to determine IE browser
Very nice feature to find out what browser you use.
Way to use:
<script type="text/javascript">
var IE='\v'=='v';
if(IE) {
//ie code here
}
</script>
* This source code was highlighted with Source Code Highlighter.
All credits go to WebReflection blog
4 Responses
- 1


Fedot Praslov
March 9, 2009
In case I just need to do something special in IE I’m sticked to something like that:
var isIE = 0 //@cc_on+1;
Inspired by: http://dean.edwards.name/weblog/2007/03/sniff/
Still my POV this is more a hackery than programming technique
Mahbub
March 17, 2009
Is that a Microsoft Bug? it really works!!
Mahbub
March 17, 2009
That works!! Lol
Is that a Microsoft Bug?
webdude
June 17, 2011
this doesn’t seem to work for IE9