detect mobile chrome browser code example
Example 1: check if browser is chrome mobile
$(document).ready(function(){
var ua = navigator.userAgent;
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(ua))
$('a.mobile-other').show();
else if(/Chrome/i.test(ua))
$('a.chrome').show();
else
$('a.desktop-other').show();
});
Example 2: browser version check for chrome or firefox typescript
browser version check for chrome or firefox typescript