Under iOS (currently 7.0), it looks like alert()
and confirm()
are not working when our web app is pinned to the home screen (aka using the meta tag
Andersen is correct:
javascript alert() and confirm() bugs fixed as of iOS7.0.3
just installed and tested it myself.
While Apple was fixing the issue, I scrambled to find something to work around it, and ended up finding a js plugin called Alertify that I thought this was worthwhile to share. I think I'll use it from now on, regardless of the bug fix! It just makes alerts, prompts etc look really, really good. Thought it was worth sharing since readers of this post are likely using the standard browser alerts. I was stoked to stumble across it.