Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Store "constants" on the window object to flag specific versions of Internet Exploiter. */
- (function(win){
- for(var i = 6; i < 10; ++i){
- if(function(v){
- var d = document.createElement("div");
- d.innerHTML = "<!--[if IE "+v+"]><i></i><![endif]-->";
- return d.getElementsByTagName("i").length;
- }(i))
- win["IS_IE"+i] = true,
- win["IE_VERSION"] = i;
- }
- }(window));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement