Javascript

Learn Javascript

Detecting Mobile / Desktop Browser with Javascript

In my opinion the simply way to detect mobile browser or not is just using this simple code bellow Output will be boolean : [xyz-ihs snippet=”detect-mobile”] or you can use regex from http://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 …

Detecting Mobile / Desktop Browser with Javascript Read More »