Great bit of javscript code that detects if a browser is Internet Explorer in just 7 bytes:
if(!+"\v1") // true only in IE
(via http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html)
Great bit of javscript code that detects if a browser is Internet Explorer in just 7 bytes:
if(!+"\v1") // true only in IE
(via http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html)
One Trackback
[…] This post was mentioned on Twitter by Ben Collier, Bencollier.net Blog. Bencollier.net Blog said: Blog post: IE Detection in 7 Bytes — Javascript http://bencollier.net/2010/08/ie-detection-in-7-bytes-javascript/ […]