This code works fine in desktop browsers:
$(window).click(function() {...});
But in Safari on the iPad, it simply doesn't fire. Is this not supported? What is the correct way to be notified when someone touches somewhere in the browser window?
JQuery UI supports touch
for devices. . You could bind click and touch listeners on the same set of events.
$(window).bind("click touchstart", function(){...});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With