<script type = "text/javaScript">
función toggle () {) {
theobj = document.getElementById ('SUNYANZI').
If (theobj.display == "ninguno") TheObj.display = "bloque";
}
</script>
<div id = "SUNYANZI" style = "Display: Ninguno"> Me ves apareció ~~~ </div>
<Br />
<input type = "button" onClight = "toggle ()" valor = "intenta ver ...?"
Dos métodos: eliminar y esconderse
// Crea tu capa pop -up
var dVMSG = document.createElement ("div");
strhtml = "<div class = '####'> Pop -up -up Capa Content </div>" "
Strhtml += "<div class = '####'> <input type = 'button' value = 'desactivar' onClick = 'btnclick ()'> </div>"
dvmsg.innerhtml = strhtml;
document.body.appendChild (DVMSG);
// Cierre el botón
btnclick = function () {{
document.body.removechild (DVMSG);
---------------------------
O la capa pop -up está marcada con una identificación Div
<div id = "tanchu"> contenido de capa pop -up </div>
en JS
function open () {
document.getElementById (tanchu) .style.display = "" "; // mostrar
}
Function Close () {) {
document.getElementById (tanchu) .Style.display = "Ninguno";
}