Answers for "js determine if device is touch"

3

javascript detect touch device

function isTouchScreendevice() {
    return 'ontouchstart' in window || navigator.maxTouchPoints;      
};

if(isTouchScreendevice()){
    alert("I am a touch screen device")
}
Posted by: Guest on August-05-2019
0

determine if touch screen js

const isTouchScreen = 'ontouchstart' in window;
Posted by: Guest on September-19-2021

Code answers related to "js determine if device is touch"

Code answers related to "Javascript"

Browse Popular Code Answers by Language