forked from marquez.juan/clase-8-DOM
agrega modificador de imagen
This commit is contained in:
@@ -72,4 +72,10 @@ function limpiarLista(idLista){
|
|||||||
li.remove();
|
li.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//ejercicio 7
|
//ejercicio 7
|
||||||
|
const imagen = document.querySelector("img");
|
||||||
|
|
||||||
|
console.log(imagen.getAttribute("src"));
|
||||||
|
imagen.setAttribute("src", "foto2.jpg");
|
||||||
|
imagen.setAttribute("alt", "locro")
|
||||||
|
//ejercicio 8
|
||||||
Reference in New Issue
Block a user