2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

iPhoneでページ内リンクからブラウザバックした後にalertが動かない現象

Posted at

onloadとかそういう話じゃなくて、単純にonclickに設定したalertが動かない。
ページ内リンクから戻った場合だけで、他のHTMLに移動して戻った場合は動く模様。
alertの後に書いたJavaScriptは動いている模様。

簡単な再現ページを書いた。
https://n314.com/iphone-back-alert-bug.html
ソース見たら分かる通り、めっちゃ単純な構造なんだけど…。

これって常識?

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?