0

I want to get hardware details of a mobile device using Jquery or Javascript. Please tell me is there a script or a way to to achieve device information via this or any extension that helps this way. Thank you.

1 Answers1

0

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

or

$.browser.device = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));

Check below links.

Community
  • 1
  • 1
Paresh Thakor
  • 1,674
  • 1
  • 23
  • 44