The shortest way to determine IE browser

The shortest way to determine IE browser

Posted on 29. Jan, 2009 by emposha in Javascript

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

Page:
  • 1

3 Comments

Fedot Praslov

09. Mar, 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

17. Mar, 2009

Is that a Microsoft Bug? it really works!!

Mahbub

17. Mar, 2009

That works!! Lol

Is that a Microsoft Bug?

Leave a reply