By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,845 Members | 1,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,845 IT Pros & Developers. It's quick & easy.

Remove one alert if other alert comes on screen

P: 1
I am validating few fields on a screen and then showing alert on the screen.
Is it possible that if a new alert comes on the screen , then the old alert should automatically get removed form the screen.?
Thanks in advance.
Jul 9 '14 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
if your alert is from the window.alert() function then you cannot replace them as it halts the script until itís closed.

with custom alerts it depends on how they are implemented, but remember that the user needs time to read the messages.

my recommendation is to not use alerts, but an error message (comparable to a tooltip) near the concerned field that lasts until re-evaluation succeeds.
Jul 9 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.