How to decide number of alerts popping up, depending on the input from user?
Number alerts in Javascript and HTML
1.1k Views Asked by l14045 At
4
How to decide number of alerts popping up, depending on the input from user?
I'm not sure why the user would want to see multiple alerts, but try:
You would still need to check that
numberis a valid number before running thefor(..)loop. Also note that some browsers allow users the choice of hiding multiple alerts.