Re-enabling window.alert in Chrome

前端 未结 3 1727
北海茫月
北海茫月 2020-12-02 07:38

I accidently checked the \"disable alerts from this site\" box in Chrome, and now I cannot get any window.alert to work on my localhost.

I have tried resetting the s

3条回答
  •  一向
    一向 (楼主)
    2020-12-02 08:21

    I can see that this only for actually turning the dialogs back on. But if you are a web dev and you would like to see a way to possibly have some form of notification when these are off...in the case that you are using native alerts/confirms for validation or whatever. Check this solution to detect and notify the user https://stackoverflow.com/a/23697435/1248536

提交回复
热议问题