<script type="text/javascript">
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
//Do sth
alert("You are using Moblie");
} else {
//Do sth
alert("You are using deskTop");
}
</script>
Reference:
From Stack Overflow but can’t found the link again.
No comments :
Post a Comment