how to detect device javascirpt

110

how to detect device javascirpt -

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

Comments

Submit
0 Comments