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