A JavaScript for browser detection created by me.
By importing browser-min.js into the head of your HTML file, it will return a global variable browser
, where browser.browser
represents the browser, browser.engine
represents the browser engine, browser.version
represents the browser version, and browser.system
represents the operating system.
Download the uncompressed version: http://labs.simpleapples.com/browser/browser.js.zip (6.025kb)
Download the compressed version: http://labs.simpleapples.com/browser/browser-min.js.zip (1.387kb)
Demo: http://labs.simpleapples.com/browser
GitHub: http://github.com/simpleapples/browser.js