Agrego ejercicio 7 de la clase 8
This commit is contained in:
@@ -89,3 +89,15 @@ function limpiarLista(idLista) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Ejercicio 7 de la clase 8.
|
||||||
|
|
||||||
|
function atribImagen() {
|
||||||
|
const imagen = document.querySelector("#foto");
|
||||||
|
|
||||||
|
imagen.setAttribute("src", "foto2.jpg");
|
||||||
|
imagen.setAttribute("alt", "Locro");
|
||||||
|
console.log(imagen.getAttribute("src"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user