Answers for "identify chrome on android using javascript"

0

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();
});
Posted by: Guest on October-22-2020
0

identify chrome on android using javascript

var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
Posted by: Guest on December-31-2020

Code answers related to "identify chrome on android using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language