Detect Browser Information With Pure JavaScript – detect-browser.js

Category: Javascript | November 23, 2018
Author:Ahmdrza
Views Total:9,174 views
Official Page:Go to website
Last Update:November 23, 2018
License:MIT

Preview:

Detect Browser Information With Pure JavaScript – detect-browser.js

Description:

Just another JavaScript library that detects and prints an object of browser information including browser language/name, user agent, device type, user OS, referer, online/0ffline, user timezone, screen resolution, and cookie enabled.

How to use it:

Insert the JavaScript file ‘detect-browser.js’ into the document and done.

<script src="detect-browser.js"></script>

Get browser information.

var info = getBrowser();

Print the information in the console log.

console.log(info)

Changelog:

11/23/2018

  • Bugfix on IE and Edge detection

You Might Be Interested In:


One thought on “Detect Browser Information With Pure JavaScript – detect-browser.js

Leave a Reply