Detecting IE in 12 bytes

By Gareth Heyes (@hackvertor)

Published 16 years 11 months ago • Last updated July 31, 2025 ⏱️ < 1 min read

Back to articles

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:-

IE='\v'=='v'

Pretty cool eh?

Back to articles