+ 19

How to find the device is mobile or pc using javascript?

From which code you can find what type of device is it like Android, Windows Phone, ipod, ipad, iphone, chrome or firefox and etc.. if the user is on your website??

26th Mar 2017, 3:56 AM
Priyanshu Dhokne
2 Answers
+ 4
? different question @Chirag in js, use navigator.userAgent
26th Mar 2017, 4:42 AM
William La Flamme
William La Flamme - avatar
+ 6
In such a case we use the <noscript> tag so as to display an error message if JavaScript is disabled
26th Mar 2017, 4:18 AM
Chirag Bhansali
Chirag Bhansali - avatar