×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Daniel Connolly
Added: May 30, 2013 9:25 AM
Views: 17
Tags: no tags
  1. // Detect browser
  2. var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
  3. var isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);