javascriptでIEバージョン番号を判断する
629 ワード
javascriptでIEバージョン番号を判断する:
住所:http://julying.com/blog/determine-the-version-number-of-ie-with-javascript/
var _IE = (function(){
var v = 3, div = document.createElement('div'), all = div.getElementsByTagName('i');
while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
all[0]
);
return v > 4 ? v : false ;
}());
住所:http://julying.com/blog/determine-the-version-number-of-ie-with-javascript/