bob_and_charlie
07-19-2003, 11:56 AM
:confused: I am trying out a script to get the area of the circle but the script is not having it. script follows:
<script type="text/javascript">
function area()
{
rad=document.form2.radius.value;
rt=document.form2.pi.value;
c=document.form2.area.value;
d=eval(Math.pow(rad,2))
{
c = eval(rt*d);
}
}
</script>
Is my script right... please help!!
<script type="text/javascript">
function area()
{
rad=document.form2.radius.value;
rt=document.form2.pi.value;
c=document.form2.area.value;
d=eval(Math.pow(rad,2))
{
c = eval(rt*d);
}
}
</script>
Is my script right... please help!!