Detecting Mobile Devices

This article will explain how to detect a mobile device

The following code will run a test to determine whether the current browser is a mobile device.