Revision: 51768
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 4, 2011 04:02 by vaibhav011286
Initial Code
var ie=(function(){var undef,v=3,div=document.createElement('div');while(div.innerHTML='<!--[if gt IE '+(++v)+']><i></i><![endif]-->',div.getElementsByTagName('ivar ie=(function(){var undef,v=3,div=document.createElement('div');while(div.innerHTML='<!--[if gt IE '+(++v)+']><i></i><![endif]-->',div.getElementsByTagName('i')[0]);return v>4?v:undef}());')[0]);return v>4?v:undef}()); // it's a minimized/compressed, self execution (no library required) // example: alert(ie); // return undefined (if the browser was not IE) // or // return browser version (if IE detected)
Initial URL
Initial Description
Initial Title
Internet explorer detection with its version in javascript
Initial Tags
Initial Language
JavaScript