469,344 Members | 6,191 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

Remove one alert if other alert comes on screen

Hi,
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
1 925
Dormilich
8,652 Expert Mod 8TB
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.

Similar topics

48 posts views Thread by David J Patrick | last post: by
3 posts views Thread by elaines | last post: by
11 posts views Thread by Alistair Saldanha | last post: by
1 post views Thread by petes | last post: by
2 posts views Thread by balakrishnan.dinesh | last post: by
2 posts views Thread by =?Utf-8?B?R3JlZw==?= | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.