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

Page:
  • 1

  1. 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 ;)

    Reply
  2. Is that a Microsoft Bug? it really works!!

    Reply
  3. That works!! Lol

    Is that a Microsoft Bug?

    Reply
  4. this doesn’t seem to work for IE9

    Reply

Comment on this post

Tag Cloud

TwitterAll tweets

Please wait while our tweets load indicator