Tuesday, April 17, 2012

What is the best way to detect Internet Explorer 6 using JavaScript?


What is the best way to detect Internet Explorer 6 using JavaScript?




If browser == IE6 {
alert('hi');
}


Source: Tips4all

1 comment:

  1. Conditional comments are a good alternative:

    <!--[if IE 6]>
    var everythingIsBroken = true;
    <![endif]-->

    ReplyDelete