Reputation: 165
I want to create a web page where I can detect the device name and model when visitor view this page from his/her device.
Upvotes: 0
Views: 31571
Reputation: 918
You could use the ng-fone angular module that I wrote for an app to do this.
More details here: http://tphangout.com/?p=83
Upvotes: 1
Reputation: 537
This is not possible in javascript. It does not have the functionality to obtain that much personal information of the user. However, it does have the functionality to tell which browser user is using. These functionalities may be available in a framework like Phonegap but not in core javascript.
Please also refer to this page:
Getting (mobile) device name from javascript
Upvotes: 1
Reputation: 3034
You can use PHP Class which checks for user-agent to find device information.
One of most used class: http://mobiledetect.net/
This question was asked by another user: Simplest way to detect a mobile device
Upvotes: 0