How to get the Blur event to fire for the document on the iPhone?
Posted
by Ian Storm Taylor
on Stack Overflow
See other posts from Stack Overflow
or by Ian Storm Taylor
Published on 2010-04-03T22:29:04Z
Indexed on
2010/04/03
22:33 UTC
Read the original article
Hit count: 538
Does anyone know how to get the blur event to fire on the document for the iPhone?
I'm trying to get it to fire either when a user changes windows in Safari, or when they open their bookmarks or when they decide to add the page to their homescreen. But none of these are firing it.
Here's my code:
$(document).blur( function () {
document.title = "Ian Taylor";
});
I've tried "document", "window", "'body'". Nothing seems to work.
© Stack Overflow or respective owner