Marko Delgadillo4,524 Points
On the 2nd alert pop-up, underneath the message, why does it ask "Prevent this page from creating additional dialogs"?
It asks "Prevent this page from creating additional dialogs" with a check box next to it. Am i doing something wrong?
No you are not doing anything wrong. That is expected behavior.
The alert dialog has historically been abused by malicious sites to make it difficult for people to leave the site (since the alert temporarily locks up the browser), in order to prevent such abuse many browsers these days will give you the option to prevent alerts when they are used more than once.
It is essentially a security feature in the browser, so it's not something you as a developer has any control over.