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

Category: Javascript | March 12, 2018
Author: Ahmdrza
Views Total: 313
Official Page: Go to website
Last Update: March 12, 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)

Leave a Reply