JavaScript jQuery detect mobile device touch screen
function is_touch_device()
{
return 'ontouchstart' in window || navigator.maxTouchPoints;
}
function is_touch_device()
{
return 'ontouchstart' in window || navigator.maxTouchPoints;
}
Comments