Listing 8.3 shows JavaScript code that repeatedly generates a pop-up that tells the user to provide his/her credit card information.

Listing 8.3. A credit card scam that uses a repeating pop-up
while (true)
{
  alert("Your financial records have been compromised.\n" +
    " To fix the problem, go to http://www.easyCredit.com" +
    " and enter your credit card information.");
}