check if the device is mobile or desktop

55

check if the device is mobile or desktop -

if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
 // some code..
}

Comments

Submit
0 Comments