Detecting IE in 12 bytes
Published: Wed, 28 Jan 2009 12:04:53 GMT
Updated: Sat, 22 Mar 2025 15:38:12 GMT
Andrea Giammarchi had a interesting article which stated you can detect IE in 32 bytes of code. I wondered if this could be improved, after a few failed attempts I found this to be the smallest and fastest way:-
<pre lang="javascript"> IE='\v'=='v' </pre>Pretty cool eh?