function resetCalculator()
{
    document.getElementById("principal").value = 1;
    document.getElementById("principal").focus();

    document.getElementById("years").value = 1;
}
/*
    This function returns focus back to principal form
    field, once the compute interest button has been
    pressed.
*/
This function returns focus back to principal form
field, once the compute interest button has been
pressed.
This function returns focus back to principal form field once the compute interest button has been pressed .
function resetCalculator()
{
    document.getElementById("principal").value = 1;
    document.getElementById("principal").focus();
    document.getElementById("years").value = 1;
}
function resetCalculator ( ) { document . getElementById ( "principal" ) . value = 1 ; document . getElementById ( "principal" ) . focus ( ) ; document . getElementById ( "years" ) . value = 1 ; }
This function returns focus back to principal form
field, once the compute interest button has been
pressed.
This function returns focus back to principal form field once the compute interest button has been pressed .