I was working on a javascript loop that alerted each key value as the loop progressed.
To speed things along, I checked the box \"Prevent this page from creating additio
Restart the browser, that should reset that option and show you new dialog boxes.
You don't need to restart the browser. Just close the tab and reopen it again. It does not need to be Incognito.
FROM THE OP:
The solution was to restart the browser. Lose all my tabs? No!!!
However, there's a way to restart your browser and not lose all your tabs.
Install the Session Manager add-on. There is a version of Session Manager for both Chrome and for Firefox.
Session Manager maintains a running list of your open tabs and will automatically ask you if you want to re-open them ("recover your session") after an unexpected reboot or system crash.
Additionally, Session Manager will let you save your tabs on demand and reload them at a later time, or after a reboot. You can save your "session" (all open tabs) any time you want, and give the session whatever name you want.
Finally, when reloading a previous session, you can also choose which tabs to re-open and which tabs to ignore.
Can't live without it, in either Chrome or Firefox.
Chrome extension
Firefox extension
And if you are using IE . . . well, you have other problems.
Roberto's answer regarding the placement of the script command before the end of body worked for me. I had spent hours trying to figure out why my console command was not working.
If you want to detect if these are being blocked. You will have to do your own thing with the message you will be dispalying but override the native alert/confirm.
window.nativeAlert = window.alert;
window.alert = function (message) {
var timeBefore = new Date();
var confirmBool = nativeAlert(message);
var timeAfter = new Date();
if ((timeAfter - timeBefore) < 350) {
MySpecialDialog("You have alerts turned off, turn them back on or die!!!");
}
}
window.nativeConfirm = window.confirm;
window.confirm = function (message) {
var timeBefore = new Date();
var confirmBool = nativeConfirm(message);
var timeAfter = new Date();
if ((timeAfter - timeBefore) < 350) {
MySpecialDialog("You have alerts turned off, turn them back on or die!!!");
}
return confirmBool;
}
Obviously I have set the time to 3.5 milliseconds. But after some testing we were only able to click or close the dialogs in about 5 milliseconds plus
Not tested but if you have the problem again I think opening the site in an incognito window will reset the dialogs.
Edit: I added this answer which worked for the Chrome build as it was. Updates might have rendered this unnecessary (appreciate not to be marked down!)