“alert()” and “confirm()” not working with “apple-mobile-web-app-capable”

前端 未结 7 1150
感动是毒
感动是毒 2021-02-07 02:32

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

7条回答
  •  攒了一身酷
    2021-02-07 03:13

    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.

提交回复
热议问题