개발/Javascript
Navigator
yunzema
2018. 12. 4. 15:56
반응형
Navigator Object
Docs : https://www.w3schools.com/jsref/obj_navigator.asp
- 사용자 브라우저의 정보를 포함하고 있는 obect
appCodeName | Returns the code name of the browser |
appName | Returns the name of the browser |
appVersion | Returns the version information of the browser |
cookieEnabled | Determines whether cookies are enabled in the browser |
geolocation | Returns a Geolocation object that can be used to locate the user's position |
language | Returns the language of the browser |
onLine | Determines whether the browser is online |
platform | Returns for which platform the browser is compiled |
product | Returns the engine name of the browser |
userAgent | Returns the user-agent header sent by the browser to the server |
*이 object를 활용하여 (userAgent) 클라이언트의 브라우저 플랫폼이나 브라우저 종류 파악이 가능하다.