function multButton_onClick() //Function is called when the multiplication script button is clicked. { //First operand and second operand are unformatted number fields on a form. var f1=document.GrooveFormBase.FirstOperand.value; var f2=document.GrooveFormBase.SecondOperand.value; //Temporarily store result of multiplication. var f3 = f1* f2; //Assign the value in f3 to an unformatted number field "Result" which is on the form. document.GrooveFormBase.Result.value = f3; }
相关文章
同类最新