The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to stop alerts
msucimaster
post 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);
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 23 2021, 07:18 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 19,778
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 23 2021, 08:52 AM
Post #3


.
********

Group: WDG Moderators
Posts: 8,829
Joined: 10-August 06
Member No.: 7



Some browsers (at least Firefox) offer to stop showing further alerts after a few repetions.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 23 2021, 11:13 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 19,778
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. laugh.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 23 2021, 02:31 PM
Post #5


.
********

Group: WDG Moderators
Posts: 8,829
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Mar 23 2021, 05:13 PM) *

it was hard to get rid of that confirmation window if I didn't answer I would like FF to suppress further alerts. laugh.gif

Huh? blink.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 23 2021, 02:45 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 19,778
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 23 2021, 06:45 PM
Post #7


.
********

Group: WDG Moderators
Posts: 8,829
Joined: 10-August 06
Member No.: 7



Yes, if you don't tick the checkbox the alerts should continue.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 24 2021, 05:20 AM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 19,778
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th July 2021 - 02:09 PM