Check if Browser is Chrome or Safari From http://stackoverflow.com/questions/12625876/how-to-detect-chrome-and-safari-browser-webkit
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
var isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);
if (isChrome) alert("You are using Chrome!");
if (isSafari) alert("You are using Safari!");