Javascript making a calculator

Lord

All Mighty
Joined
Feb 11, 2011
Messages
15,476
Reaction score
11
Points
31
<html>
<head>
<script type="text/javascript">
function mostraPrompt()
{
var name=prompt("introduza o seu nome","Harry Potter");
if(name!=null&&name!="")
{
document.write("Bem-Vindo"+ " "+name);
}
}
</script>
</head>
<body>
<input type="button"value="Mostra Janela de Prompt"onclick="mostraPrompt()"/>
<script>
<form>
var x=numero 1
var y=numero 2
var z=total
</form>
</script>
<p>Numero 1 <input type="text" "numero 1"+" "+"x"></p>
<p>Numero 2 <input type="text" "numero 2"+" "+"y"></p>
<script>
functionname(x,y)
</script>
<input type="button" value="+" "onclick="mostraresultadosoma()"/>
<input type="button" value="-" "onclick="mostraresultadosubtracçao()"/>
<input type="button" value="*" "onclick="mostraresultadomultiplicaçao()"/>
<input type="button" value="/" "onclick="mostraresultadodivisao()"/>
<p>Total <input type="text" "total"+" "+"z"></p>

</body>
</html>
So i also need help making this work, i want this to calculate the numbers as i introduce them, it's in portuguese, wich is similar to spanish but not all is in portugues so i think it's easy to understand.
 
Come on guys, i really need some help
 

Users who are viewing this thread

Back
Top
monitoring_string = "afb8e5d7348ab9e99f73cba908f10802"