How to stop alerts |
How to stop alerts |
msucimaster |
Mar 23 2021, 06:39 AM
Post
#1
|
Newbie Group: Members Posts: 11 Joined: 29-April 20 Member No.: 27,307 |
Occasionally it happens to me that I put some alert in javascript in order to debug it and then I find myself to have to press ok for a hundred times.
Sure, there are lots of ways not to get in this situation. But sometimes my guard is down and it happens again. So my question is: how can I break off such a situation. Think of QUOTE for(i=1;i<100;i++) alert(i); |
pandy |
Mar 23 2021, 07:18 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
To my knowledge you can't.
If you press and hold down ALT+F4 you might kill the browser process before you have to see all alerts and thus avoid using Task Manager. |
Christian J |
Mar 23 2021, 08:52 AM
Post
#3
|
. Group: WDG Moderators Posts: 9,667 Joined: 10-August 06 Member No.: 7 |
Some browsers (at least Firefox) offer to stop showing further alerts after a few repetions.
|
pandy |
Mar 23 2021, 11:13 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
Right! Didn't know about that. I tried it. It worked but it was hard to get rid of that confirmation window if I didn't answer I would like FF to suppress further alerts.
|
Christian J |
Mar 23 2021, 02:31 PM
Post
#5
|
. Group: WDG Moderators Posts: 9,667 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Mar 23 2021, 02:45 PM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
FF spawns a window that looks much like a JS alert. I'm asked if I want to stop further alerts. But there's only one choice and an OK button. If I don't want to stop them, then what do I do?
Or so I thought. But I realize now that what I see is my own alert to which FF has added the question about if I want to stop the alerts and a checkbox. |
Christian J |
Mar 23 2021, 06:45 PM
Post
#7
|
. Group: WDG Moderators Posts: 9,667 Joined: 10-August 06 Member No.: 7 |
Yes, if you don't tick the checkbox the alerts should continue.
|
pandy |
Mar 24 2021, 05:20 AM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
Yeah, I got it after a while. But at first I didn't understand it was the JS alert I saw. They look like anything now and FF doesn't even label them JavaScript anymore. Just a plain little window.
|
Lo-Fi Version | Time is now: 21st May 2024 - 11:15 AM |