lucy24 - 6:48 pm on May 10, 2013 (gmt 0)
How can I detect
Lots of ways. But if you're already using a process that requires js, may as well put the UA detection into the same function. If the user doesn't have js, no point in even checking.
Now, what about other mobiles? You'd want to screen out androids and so on too wouldn't you?
Alternative approach: Can you code it to detect mouse-hovers that are not clicks? This alone might make the mobiles problem go away. In a browser, a click is always preceded by a hover. In a tablet, there's only one mouse event. (Talking here about vanilla html, not custom-written apps.)