I have this code:-
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Untitled</title>
<script language=”JavaScript” type=”text/javascript”>
<!–
var c;
function a_int_b(form){
c=0;
a=eval(form.a.value);
b=eval(form.b.value);
c=a;
for(var i = 0;i<b;i++){
c =c*1.00482;
}
form.ans.value = c.toFixed(2);
}
//–>
</script>
</head>
<body>
<form>
amount<input type =”text” name=”a”><br>
months<input type =”text” name=”b”><br>
amount with interests<input type =”text” name=”ans”><br>
<input type =”button” onClick=”a_int_b(this.form)”>
</form>
</body>
</html>
Its basically a calculator to work out interest. I want a way to be able to update the variables like 1.00482 easily, without having to understand this code.
Ideally an external file that amins can access and change the 1.00482, eg txt file, xls file, etc