Quantcast
Viewing all articles
Browse latest Browse all 2

Javascript detecting wether or not user has a mouse

This is not for design, I'm making a tutorial where I would either ask the user to tap or to click on things.

Right now I'm using:

("ontouchstart" in document.documentElement);

But this fails on laptops with a touchscreen.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>