<head><title>for loop 09 irritating</title>
 <script language="JavaScript">
  function song(){
     var max = parseInt(window.prompt("How many times?","5"));
     for (cnt = 1; cnt <= max; cnt = cnt+1)
         alert("verse " + cnt + "\n"
				       + "This is the song that never ends, yes it goes on and on my friend. "
               + "Some people started singing it, not knowing what it was, and "
               + "they'll continue singing it forever just because...");
     }
</script>
</head>
<body onload='song();'>
</body>