User:Oualid ouazrou

Calculator  function multi { var a = document.Calculator.no1.value; var b = document.Calculator.no2.value; var p = (a*b); document.Calculator.product.value = p;   }

function divi { var i = document.Calculator.dividend.value; var j = document.Calculator.divisor.value; var q = (i/j); document.Calculator.gt.value = q;   }

function moins { var m = document.Calculator.m.value; var n = document.Calculator.n.value; var x = (m-n); document.Calculator.x.value= x; }

function plus { var k = document.Calculator.k.value; var l = document.Calculator.l.value; var y = (k+l); document.Calculator.y.value= y; }

 body { background-color:green; color:red }

label { float:left; width:7em }

Calculator 

multi  ×   

moin  -   

Divide  ÷   

plus  + <input type="text" name="l"> <input type="button" value="=" onclick="plus"> <input type="text" name="y">