Skip to content

Instantly share code, notes, and snippets.

@pixelchild
Created July 3, 2012 01:46
Detect Touch devices with Javascript
function is_touch_device() {
return !!('ontouchstart' in window);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment