×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: user386d9
Added: Apr 11, 2017 1:54 PM
Modified: Apr 11, 2017 1:54 PM
Views: 11
Tags: no tags
  1. function isMobile() {
  2.     try {
  3.         document.createEvent("TouchEvent");
  4.         return true;
  5.     } catch (e) {
  6.         return false;
  7.     }
  8. }