Coder Social home page Coder Social logo

manuelramirezio / detect-browser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ahmdrza/detect-browser

0.0 1.0 0.0 26 KB

A JavaScript library to detect browser properties like browser name, device, OS, referrer, timezone, screen resolution and much more.

License: MIT License

JavaScript 91.32% HTML 8.68%

detect-browser's Introduction

detect-browser

A JavaScript library to detect browser properties like browser name, device, OS, referrer, timezone, screen resolution and much more.

Documentation

Add <script type="text/javascript" src="detect-browser.js"></script> at the top of your page.
Add <script type="text/javascript"> var info = getBrowser(); console.log(info); </script>

It will print browser info in console

List of Properties

info.language // browser language e.g en-US
info.languages // Gives Array of languages
info.user_agent // Gives User Agent
info.browser // Gives Browser name e.g Chrome
info.device // Gives Device e.g Mobile or Desktop
info.referer // Gives Referer
info.os // Gives User OS e.g windows 10 64-bit
info.online // Gives user online status true or false
info.timezone // Gives User Timezone
info.screen_resolution // Gives Screen Resolution e.g 1366 x 768
info.cookie_enabled // Gives Cookie enabled status true or false

detect-browser's People

Contributors

vacekj avatar ahmdrza avatar jasonbenett avatar

Watchers

Manuel Ramirez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.