본문 바로가기

development/javascript

브라우저 버전 확인


<html>
<head>
<title> navigator test</title>
</head>

<body>
<script type="text/javascript">
<!--
 document.write("<h1>");
 document.write("<br>navigator.appCodeName : " + navigator.appCodeName);  // 브라우저 코드네임
 document.write("<br>navigator.appMinorVersion : " + navigator.appMinorVersion);  // application's minor version
 document.write("<br>navigator.appName : " + navigator.appName);  // 브라우저 이름
 document.write("<br>navigator.appVersion : " + navigator.appVersion.substring(22,23));  // 브라우저 버젼
 document.write("<br>navigator.browserLanguage : " + navigator.browserLanguage);  // 브라우저 language
 document.write("<br>navigator.cookieEnabled : " + navigator.cookieEnabled);  // cookies 사용가능여부
 document.write("<br>navigator.cpuClass : " + navigator.cpuClass);  // CPU 정보
 document.write("<br>navigator.onLine : " + navigator.onLine);  // 네트웍 online 여부
 document.write("<br>navigator.platform : " + navigator.platform);  // 브라우저 OS정보
 document.write("<br>navigator.systemLanguage : " + navigator.systemLanguage);  //
 document.write("<br>navigator.userAgent : " + navigator.userAgent);  // 브라우저 전체정보
 document.write("<br>navigator.userLanguage : " + navigator.userLanguage);  // OS Languge Setting
 document.write("</h1>");
//-->
</script>
</body>
</html>