Thanks to all who replied. I really do appreciate you! Sorry for the code that didn't work very well.
I've rewritten my code that detects touch and mouse. This time I'm not going to post until I've tested on the one device I can get my hands on: a Microsoft Surface tablet. Look for A Little Help Please? [Part Deux] tomorrow if my Surface test goes well.
I've noticed more and more devices that have both touch screens and a mouse. My research tells me this is either impossible or very difficult to detect. I always love a challenge, so I wrote some code that I think will detect this. I am using Dojo has('touch') to detect if the device has a touch screen. This works on all of the devices I've tested. The code to detect a mouse on a touch device is the tricky part, and I don't have access to any devices to test this on. Here's how you can help if you have