<script>
var Messages = [
"Message1",
"Message2",
"Message3"
];
i=0;
while (i<Messages.length){
alert(Messages[i]);
i++;
if (i == Messages.length){
i=0;
}
}
</script>
var len = Messages.length;
while(i<len) {
...
var len = Messages.length;
while(1) { /* For ever */
for (i=0; i < len; i++) {
alert(Messages[i]);
}
}
Quite a few people use chrome and after a couple of these it has the option to "Stop this website from opening any more alerts"
A possible workaround could be storing the current message that you are on in a variable and then onpageunload recall the script to start running again.Same with firfox, it will show message 1, and all the other messages. After message 2 a little message underneath allows you to check the box to prevent additional dialogues and then it goes away.