Skip to main content
Home
Toggle menu

Main navigation

  • Home
  • Blogs

July 2015

How to detect Mobile device using JavaScript

Here is how to detect if user has opened site in mobile device or desktop. For this we're using JavaScript code which will be executed at client-side.
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
  • Read more about How to detect Mobile device using JavaScript

Monthly archive

  • March 2019 3
  • September 2018 1
  • July 2018 2
  • April 2018 1
  • August 2017 1

Pagination

  • Next page ››
sfy39587stp18