sohag513
sohag513

Reputation: 165

Getting device name and model using javascript, jquery or php

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

Answers (3)

Raja Yogan
Raja Yogan

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

Inzamam Tahir
Inzamam Tahir

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

Apul Gupta
Apul Gupta

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

Related Questions