Get iPhone device details using HTML/JavaScript

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


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

Edit:

Read this post on SO Might be the easiest solution

链接地址: http://www.djcxy.com/p/8894.html

上一篇: 如何在Google Chrome开发人员工具中模拟iPod Touch

下一篇: 使用HTML / JavaScript获取iPhone设备详细信息