Answers for "js detect user mobile"

0

js detect user mobile

function is_touch_device() {
  return 'ontouchstart' in window // works on most browsers 
      || 'onmsgesturechange' in window; // works on ie10
}
Posted by: Guest on March-31-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language