there is an error somewhere in my code, but i cant work it out.
could one of you give it a quiq look?
<html>
<head>
<script language="JavaScript">
function bereken()
{
j = parseInt(fx.s.value)
p = parseInt(fx.j.value)
s = parseInt(fx.p.value)
while (j > 0 )
{
j = j-1
r = (p\100)*s
s = s+r
ns = s
}
{
document.write ("nieuwsaldo ",ns,")
}
window.alert ("uw nieuwe salso is"+nieuwsaldo+" euro.")
}
</script>
</head>
<body>
<form name="fx" method="post">
<pre>
huidig saldo: <input name="s" type="text">
jaren: <input name="j" type="text">
rente percentage: <input name="p" type="text">
<input type="button" name="bereken" value="Bereken" onClick="bereken()">
<pre>
</form>
</body>
</html>