Diferencia entre revisiones de «Test Javascript 2»
Sacado de cristobal.wiki, presentado sin garantia y con mucho <3.
Ir a la navegaciónIr a la búsqueda
Página creada con «<html> <head> <script> function hola() { document.getElementByID("boton").innerHTML = "Genial!"; }; </head> <body> <button onClick="hola();">Pulsame!</button> </body> </html>» |
Sin resumen de edición |
||
| (No se muestran 5 ediciones intermedias del mismo usuario) | |||
| Línea 3: | Línea 3: | ||
<script> | <script> | ||
function hola() { | function hola() { | ||
document. | document.getElementById("boton").innerHTML = "Genial!"; | ||
}; | }; | ||
</script> | |||
</head> | </head> | ||
<body> | <body> | ||
<button onClick="hola() | <button onClick="hola()" id="boton">Pulsame!</button> | ||
</body> | </body> | ||
</html> | </html> | ||
Revisión actual - 12:02 17 dic 2025