Un Dell
<script language = "JAVASCRIPT">
var a = document.getElementById ("firstNumber");
var b = document.getElementById ("seconfNumber");
function calcular_sum ()
{
document.getElementById ("resultado"). valor = (a + b);
}
función calcular_producto ()
{
document.getElementById ("resultado"). valor = (a * b);
}
</script>
<html>
Ingrese el primer no: <input type = "text" id = "firstNumber" size = "2" /> <br/>
Ingrese el segundo no: <input type = "text" id = "secondNumber" size = "2" />
<
tipo de entrada = "botón" valor = "Calculate_Sum" onclick = "calculate_sum ()" />
<input type = "button" value = "Calculate_product" onclick = "calculate_product ()" />
Resultado: <span id = "result" />
</html>