Re-enabling window.alert in Chrome

JavascriptGoogle Chrome

Javascript Problem Overview


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 settings in advanced but no luck.

Javascript Solutions


Solution 1 - Javascript

Close and re-open the tab. That should do the trick.

Solution 2 - Javascript

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

Solution 3 - Javascript

In Chrome Browser go to setting , clear browsing history and then reload the page

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionmaxView Question on Stackoverflow
Solution 1 - Javascriptuser2824854View Answer on Stackoverflow
Solution 2 - JavascriptDeadlyChambersView Answer on Stackoverflow
Solution 3 - JavascriptDeshani TharakaView Answer on Stackoverflow