Object inner
How do I make an object inner?
What is a object inner? How do you make a object inner? This script and codes were developed by Carla on 07 November 2022, Monday.
Object inner - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>object inner</title>
</head>
<body> <html> <body> <section id="test"><p> HOLA MUNDO</p></section> <button id="boton">Boton</button> </body>
</html> <script src="js/index.js"></script>
</body>
</html>
Object inner - Script Codes JS Codes
//crear los objetos :
console.clear()
var saludo=document.getElementById("test");
var boton=document.getElementById("boton");
var accion=function(e){ saludo.textContent=saludo.textContent +" hola "/*substituimos el contenido de la sección mas el contenido de la seccion +hola /* saludo.textContent="Texto cambiado" /*util para cambiar el contenido de un tag, cambier el texto, etc. cuando cambias el textContent ya no se puede volver atrás, tendríamos que actualizar la página, donde saldría el texto inicial del html*/ // alert(saludo.textContent) /*textContent te imprime solo el contenido de texto*/
}
boton.addEventListener("click",accion)
Developer | Carla |
Username | whereisfluffy |
Uploaded | November 07, 2022 |
Rating | 3 |
Size | 1,691 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Object style. SELECT | 1,822 Kb |
JQuery 25 | 1,881 Kb |
3. tag links imprimir boton | 1,693 Kb |
PORT AVENTURA | 1,554 Kb |
Algoritmo Notas | 1,498 Kb |
ForEach colores | 1,507 Kb |
Persona forIn | 1,585 Kb |
Lista compra DOM events | 2,363 Kb |
Condicionales 18-01 | 1,483 Kb |
Formulario persona | 1,805 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Long Shadow Button | Uixcrazy | 3,550 Kb |
Countdown Timer | Massiebn | 3,001 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 Kb |
LBCA - Mail canvas | Emnbdx | 3,856 Kb |
Donut Chart example - MorrisJS | Capelo | 2,385 Kb |
React JS Movie Info App | MTushar | 4,870 Kb |
The Fly | GianlucaGuarini | 3,405 Kb |
Sort the Knowlege | Eprouver | 3,915 Kb |
Perforated foil | 0x04 | 2,617 Kb |
Portfolio page | Bhavya_j | 2,804 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!