<body> <script language="JavaScript"> var cnt = parseInt(window.prompt("Start at?","1")); var max = parseInt(window.prompt("Stop at?","5")); var step = parseInt(window.prompt("Step size?","1")); while ( cnt <= max ){ document.write(cnt+" play it again, Sam<br>"); cnt = cnt+step; } </script> </body>