Thread: java script
View Single Post
  #8 (permalink)  
Old June 23rd, 2006, 01:07 AM
vinod_yadav1919 vinod_yadav1919 is offline
Friend of Wrox
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

Hii Nalla!!
plz check
function getValue()
theAnswer = ((document.form1.number2.value - document.form1.number1.value) / document.form1.number1.value * 100);
<form name=form1>
Number1<input type=text name=number1><br>
Number2<input type=text name=number2>
<input type=button onclick="getValue()" value="calculate" name=number22>

hope this will help you

Cheers :)

Reply With Quote