<html>
<head>
<script language="javascript1.2">
function calcolatrice() {
var numero1=document.getElementById('numero1');
var numero2=document.getElementById('numero2');
var operatore=document.getElementById('operatore');
alert('entrato');
alert(numero1);
alert(numero2);
if (operatore==1)
{
operazione=numero1+numero2;
alert(numero1'+'numero2'='operazione;
}
else if (operatore==2)
{
operazione=numero1-numero2;
alert(numero1'-'numero2'='operazione;
}
else if (operatore==3)
{
operazione=numero1*numero2;
alert(numero1'*'numero2'='operazione;
}
else if (operatore==4)
{
operazione=numero1/numero2;
alert(numero1'/'numero2'='operazione;
}
}
</script>
</head>
<body>
<input type='text' id='numero1' />
<select id='operatore' >
<option value=1>+</option>
<option value=2>-</option>
<option value=3>*</option>
<option value=4>/</option>
</select>
<input type='text' id='numero2'/>
<input type='button' onclick='calcolatrice()' />
</body>
</html>
perche' non funzina aiuto ragazzi![]()