If you would like to know your web application running on which platform like mobile or web browser. Please use the below code for the same.
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ){
alert('This is mobile');
}else{
alert('This is web browser');
}
0 Comment(s)