salut a tt le monde............
Voila j'ess re fair une calculatrice simple ds ma page html mais jarrive pas a fair les fonction
voici mon pgm :
<html>
<head><title>js1</title>
<script language="javascript">
function r1(){
}
</script>
</head><center>
<form>
<input type="text" name="" value=" " onClick=""> <br>
<input type="button" name="hh" value="7 " onClick="r1()">
<input type="button" name="hh" value="8 " onClick="r1()">
<input type="button" name="hh" value="9 " onClick="r1()">
<input type="button" name="hh" value="+ " onClick="r1()"> <br>
<input type="button" name="hh" value="6 " onClick="r1()">
<input type="button" name="hh" value="5 " onClick="r1()">
<input type="button" name="hh" value="4 " onClick="r1()">
<input type="button" name="hh" value="- " onClick="r1()"> <br>
<input type="button" name="hh" value="3 " onClick="r1()">
<input type="button" name="hh" value="2 " onClick="r1()">
<input type="button" name="hh" value="1 " onClick="r1()">
<input type="button" name="hh" value="/ " onClick="r1()"> <br>
<input type="button" name="hh" value="div " onClick="r1()">
<input type="button" name="hh" value="0 " onClick="r1()">
<input type="button" name="hh" value="sqrt" onClick="r1()">
<input type="button" name="hh" value="* " onClick="r1()"> <br>
<input type="button" name="hh" value="= " onClick="r1()">
</from></center> </html>
la touche DIV est le reste de la division et la touche SQRT est est la racine carré
Merçi de bien m'aider et encor merçi


