Ejercicio:
| <html> | |
| <head> | |
| <title>kjdjk</title> | |
| <script> | |
| function acropolis(){ | |
| document.getElementById("resultado").value = document.getElementById("uno").value | |
| } | |
| function a(){ | |
| document.getElementById("resultado").value = document.getElementById("dos").value | |
| } | |
| function b(){ | |
| document.getElementById("resultado").value = document.getElementById("tres").value | |
| } | |
| function acropolis2(){ | |
| document.getElementById("resultado").value = document.getElementById("uno").value + document.getElementById("dos").value + document.getElementById("tres").value + document.getElementById("cuatro").value | |
| } | |
| </script> </head> | |
| <body> | |
| Uno:<input type="text" id="uno"> <input type="button" value="uno" onclick="acropolis()"><br> | |
| Dos:<input type="text" id="dos"> <input type="button" value="dos" onclick="a()"><br> | |
| Tres:<input type="text" id="tres"> <input type="button" value="tres" onclick="b()"><br> | |
| cuatro:<input type="text" id="cuatro"> <input type="button" value="cuatro" onclick="acropolis2()"><br> | |
| Resultado:<input type="text" id="resultado"> | |
| </body> | |
| </html> | |

No hay comentarios:
Publicar un comentario