D
D
Dima nahkar2014-12-02 18:52:45
JavaScript
Dima nahkar, 2014-12-02 18:52:45

How to determine exactly the android phone and not the tablet using JS?

How to determine exactly the android phone and not the tablet using JS?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Max, 2014-12-02
@AloneCoder

By screen resolution?
www.ciop.com/common-resolutions-for-mobile-phones-...

L
Lumore, 2014-12-02
@Lumore

May be suitable:
detectmobilebrowsers.com

I
Ivan Nikitin, 2014-12-02
@ivann

With the <meta name="viewport" content="width=device-width"> meta tag, 1 css pixel is roughly equal to 1/96 of an inch. Knowing the number of pixels horizontally and vertically, you can determine the size of the screen. Next, you need to decide what size you consider a tablet for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question