Can I use feature detection to know if css hover works for this client?
Posted
by user366061
on Stack Overflow
See other posts from Stack Overflow
or by user366061
Published on 2010-06-14T06:26:57Z
Indexed on
2010/06/14
6:32 UTC
Read the original article
Hit count: 310
I've got a website that provides labels when the user hovers over an image. You can see the example at: http://www.185vfx.com/
For touchscreens, I'd like to have those hints on by default (since hover isn't usually available). I'd prefer not to browser-sniff and try to maintain that list as new devices/versions arrive.
Any reliable way to detect if a browser can respond to hover or otherwise know about a touchscreen user via javascript or css?
© Stack Overflow or respective owner