Use userAgent check browser by JavaScript or PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
browser.php
check_browser.js

README.md

check_browser

Use javascript userAgent check browser

alert(browser());
// return browser name IE or Chrome ...

// or
var b = new browser();
alert(b.safari);
// return true or false

Method support browser

  • edge
  • opera
  • firefox
  • chrome
  • safari
  • ie7
  • ie8
  • ie9
  • ie10
  • ie11
  • ie