Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Borrar contenido de una capa en Javascript
- Loading branch information
1 parent
a614077
commit b1be91e
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Eliminar Contenido Capa</title> | ||
</head> | ||
<body> | ||
<h1>Eliminar Contenido Capa</h1> | ||
|
||
<div id="micapa">Contenido de mi capa... | ||
<br/> | ||
<img src="http://lineadecodigo.com/wp-content/uploads/2015/07/Logo2-768x768.png"/> | ||
<br/> | ||
Fin del contenido de mi capa | ||
</div> | ||
|
||
<button id="eliminar">Eliminar Contendio</button> | ||
|
||
|
||
|
||
<script> | ||
|
||
var boton = document.getElementById("eliminar"); | ||
boton.addEventListener("click", function() { | ||
|
||
document.getElementById("micapa").innerHTML = ''; | ||
|
||
},false); | ||
|
||
|
||
</script> | ||
|
||
|
||
<br><br> | ||
<hr> | ||
Artículo disponible en: <a href="http://lineadecodigo.com/javascript/borrar-contenido-capa-javascript/">http://lineadecodigo.com/javascript/borrar-contenido-capa-javascript/</a><br/> | ||
<a href="http://lineadecodigo.com" title="Linea de Codigo">lineadecodigo.com</a> | ||
|
||
|
||
</body> | ||
</html> |