Du kan kigge her på nogle forskellige ting du kan få via javascript.
Application Code Name
var codeName = navigator.appCodeName;
Application Name
var appName = navigator.appName;
Application Version
var appVersion = navigator.appVersion;
User Language and Language
var userLanguage = navigator.userLanguage;
var language = navigator.language;
Platform
var appName = navigator.platform;
User Agent
var userAgent = navigator.userAgent;
Java Enabled
var javaEnabled = navigator.javaEnabled();
To check cookies are enabled in the browser.
navigator.cookieEnabled
CPU class of the browser's system
var cpuClass = navigator.cpuClass;
To get boolean status of system mode.
navigator.onLine;
Browser Version
var version = parseInt(navigator.appVersion,10);
OBS, nogen af dem der ik virker!
nu er linket også fra 2008 ved ik om det kan være derfor.
- //Application Code Name
- console.log(navigator.appCodeName);
-
- //Application Name
- console.log(navigator.appName);
-
- //Application Version
- console.log(navigator.appVersion);
-
- //User Language and Language
- console.log(navigator.userLanguage);
- console.log(navigator.language);
-
- //Platform
- console.log(navigator.platform);
-
- //User Agent
- console.log(navigator.userAgent);
-
- //Java Enabled
- console.log(navigator.javaEnabled());
-
- //To check cookies are enabled in the browser.
- console.log(navigator.cookieEnabled);
-
- //CPU class of the browser's system
- console.log(navigator.cpuClass);
-
- //To get boolean status of system mode.
- console.log(navigator.onLine);
-
- //Browser Version
- console.log(parseInt(navigator.appVersion,10));
Mozilla
Netscape
5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
undefined
en-US
MacIntel
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
true
true
undefined
true
5