contact: sprincycs@gmail.com <script type="text/javascript"> /* <![CDATA[ */ function wLoop(count) { count = parseInt(count); if(count == 10){ document.alert("number is too large"); } } /* ]]> */ </script> </head> <body> <form name="loops"> <p>Enter a number between 1 - 9999</p> <input name="wLoopText" type="text"/><br/> <input type="button" value="While Loop" onclick="wLoop(document.loops.wLoopText.value)" name="wLoopButton"/><br/> <br/> <p>Enter a number between 1 - 9999</p> <input name="fLoopText" type="text"/><br/> <input type="button" value="For Loop" onclick="fLoop()" name="fLoopButton"/><br/> </form> /* ]]> */ </script>
What on earth? This was posted a few days ago: http://forums.digitalpoint.com/showthread.php?t=2097181