javascript - if Android Device and not google chrome (conditional) -
anyway write conditional; only if android device , not google chrome something.
so, detect if android (easy via below) based on if android and not google chrome; instance android users not using google chrome.
any ideas if possible add such condition in similar format below? (this works detecting android, need add condition if android , not chrome > something)
// var ua = navigator.useragent.tolowercase(); // var isandroid = ua.indexof("android") > -1; //&& ua.indexof("mobile"); // if(isandroid) { // alert("android!"); // }
and found can detect chrome below (no way combine them?)
var is_chrome = navigator.useragent.tolowercase().indexof('chrome') > -1;
Comments
Post a Comment