0

Tablets and laptops with touch-screen have "touch" support. So how we can to detect with help of javascript that it's a laptop but not a tablet?

P.S.: I don't need to detect touch device. I need to distinguish laptop with touch screen from a tablet.

  • 1
    the first hit on google leads to [this duplicate](http://stackoverflow.com/questions/3974827/detecting-touch-screen-devices-with-javascript) – Jonesopolis Jul 18 '14 at 15:15
  • @Jonesy: that thread only deals with detecting touch screens. At Pavel: just wondering why you would want to distinguish between a laptop with touch screen and a tablet? What would be the practical implications? – Frank Conijn - Support Ukraine Jul 18 '14 at 16:38

1 Answers1

1
var isLaptopWithTouchScreen;
window.addEventListener('mousemove', function(){
    isLaptopWithTouchScreen = true;
});