p2p.wrox.com - beginning_javascript archive
Our web spider found the following code snippet at p2p_wrox_com and contains information about asin and JavaScript.
t;script language="JavaScript">
function CalcFluencyRate (){
var Words = prompt("Enter the number of words read correctly:", "");
var Errors = prompt("Enter the number of errors:", "")
var Seconds = prompt("Enter the number of seconds to read passage:", "");
var result = ((Words - Errors) * 60)/Seconds;
return result;
}
</script>
<form name="form1" method="post" action="">
<p>
<input type="text" name="txtFluencyRate" onFocus="CalcFluencyRate();">
</p>
</form>
         
</body>
</html>

Thanks!
Message #2 by <wshbone@m...> on Tue, 30 Jul 2002 19:12:57 -0400

 
Anita, 
Try adding alert(result); just before the return in your function 
Pete 
Message #3 by Greg Griffiths <greg2@s
Read the entire article....