Answer the question
In order to leave comments, you need to log in
How to distinguish a mouse click from a touch screen click?
For example code
<script>
function who(){
if (если клик сделан мышкой,то есть устройство десктоп)
if(если клик сделан тачем,то есть с телефона)
}
</script>
<a href="" onclick="who();">WHOIS</a>
Answer the question
In order to leave comments, you need to log in
You get a device using, for example, https://github.com/matthewhudson/current-device
And by condition you set the desired action for click
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question