javascript

navigator object 사용

jeeyong 2008. 12. 1. 18:12
[펌 : http://blog.naver.com/hermeswing/150018802654]

<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);  // 브라우저 버젼
 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>
------------------------------------------------------------------------

navigator.appCodeName : Mozilla
navigator.appMinorVersion : ;SP2;
navigator.appName : Microsoft Internet Explorer
navigator.appVersion : 4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
navigator.browserLanguage : ko
navigator.cookieEnabled : true
navigator.cpuClass : x86
navigator.onLine : true
navigator.platform : Win32
navigator.systemLanguage : ko
navigator.userAgent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
navigator.userLanguage : ko