Does anyone know how to makea n annoying pop up message in javascript, that keeps on opening up over and over again, almost like a loop script? :D

Recommended Answers

You can place the alert within a function and use the setInterval method to call the function every certain number of milliseconds.

 setInterval(code,millisec)
Jump to Post

All 3 Replies

You can place the alert within a function and use the setInterval method to call the function every certain number of milliseconds.

 setInterval(code,millisec)

To make it open continually, use the while(true) loop:

while(true){
    alert()
}
Do while(0<1){
 alert("I'm an infinite Loop!!")
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.