I\'m using jQuery to detect a click on the DOM - or let\'s every click.
$(document).click(function(){
alert(\"Click :-)\");
});
This works p
... your page tags ...
There is a minor difference with others browsers behaviour: the document object will reveive click events only for tags located inside the "... your page tags ..." section.
In other words, suppose your html and body tags have a yellow background color, and their child tags have a red background color. The document object will receive clicks on the red areas only. This is usually not a serious drawback.
Tested on an iPhone 3 only