The detect object allows you to check for a number of browser features and states.
detect
You can detect many css style capabilities, including:
Detect if the device supports touch.