Detecting a mobile browser

Using Regex (from detectmobilebrowsers.com): Here’s a function that uses an insanely long and comprehensive regex which returns a true or false value depending on whether or not the user is browsing with a mobile. For those wishing to include tablets in this test (though arguably, you shouldn’t), you can use the following function: Using navigator.userAgentData … Read more