F
F
feelsgood2018-06-24 21:44:25
JavaScript
feelsgood, 2018-06-24 21:44:25

How to identify a user with a mobile device?

Good day community. Based on your skills and experience, what do you think is the most booletproof way to determine on the client today that the user has accessed the site from a mobile device.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Spirin, 2018-06-24
@rockon404

const isMobile = /Mobile|webOS|BlackBerry|IEMobile|MeeGo|mini|Fennec|Windows Phone|Android|iP(ad|od|hone)/i.test(navigator.userAgent);

L
Lumore, 2018-06-24
@Lumore

device.js

V
Vasily Vasilyev, 2018-07-26
@Basil_Dev

One line of js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question