How to display DIV only in android device ?
i want to add button that if you click it go in whatsapp app. bot only in android devices
How to display DIV only in android device ?
i want to add button that if you click it go in whatsapp app. bot only in android devices
Using navigator.userAgent
you are able to check operating system of agent who opens your page. For example try this:
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1;
if(isAndroid) {
// SHOW YOUR DIV
}