» dLight
This is my sarcastic example of touchStart, gestureStart, and gestureEnd event handlers within Safari on iPhone. One finger turns it on, two fingers turn it off. Please note this is useless on anything but the iPhone, as you’ll just get a page with a black box … actually, it’s just plain useless alltogether really. This raises the question of why anyone would pay $99 to release something similar. Does it really need to be an actual application available within the App Store? Either way, just look at the source if you want a very basic idea of how to detect touches and gestures.