Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<td>Initial Velocity: </td>
       <td> <input type = "textbox" name ="InitVelocityInput" onKeyPress="return isAcceptable(event)" onBlur = "totalEntered(this)" id = "IVUnit"> </td>
</body>
</html>
 
var totalEnteredCount = 0;
function totalEntered(field){
if(field.value !== '')
{
    totalEnteredCount++;
}
alert(totalEnteredCount);
if(totalEnteredCount == 3)
{
    var IV = document.getElementById("IVUnit").value;
    var FV = document.getElementById("FVUnit").value;
    var Distance = document.getElementById("DUnit").value;
    var Acceleration = document.getElementById("AUnit").value;
    var Time = document.getElementById("TUnit").value;
}
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers