Skip to content
A very small user-agent (browser) and device detection library.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
demos
src
LICENSE
README.md

README.md

UA.js

ua.js is a very small library to detect user-agents (browsers) and devices. The library has methods to detect specific browsers (major ones) and also support for detecting class of browsers (like Gecko, WebKit, etc.)

Usage

if (UA.isOpera()) {
    // Opera browser
}
if (UA.isTV()) {
    // I'm running on a TV!
}
Something went wrong with that request. Please try again.