0

Possible Duplicate:
Detect the specific iPhone/iPod touch model in Javascript

I would like to get the Apple device model name/number like iPhone 4s(A1387) or iPhone 5 using HTML/JavaScript. i tried using User-Agent which provides info like

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 Safari/419.3

It doesn't specify model number or name. Only says that it is a iPhone.

Is there a way to get Apple device model name/number using HTML or JavaScript.

Thank you

Community
  • 1
  • 1
User382
  • 864
  • 19
  • 42

1 Answers1

0

You could use something like http://www.handsetdetection.com

Edit:

Read this post on SO Might be the easiest solution

Community
  • 1
  • 1
johan
  • 6,578
  • 6
  • 46
  • 68