🕹 스크립트
js 터치되는 디바이스에서 a링크 삭제
(。θᗨθ。)
2022. 12. 5. 14:54
const isTouchDevice = (navigator.maxTouchPoints || 'ontouchstart' in document.documentElement);
if(isTouchDevice){
dep1.attr("href","javascript:void(0)"); //dep1 은 a링크 없애고 싶은 부분
}
728x90