Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/09/2010, 13:29
Avatar de triibhals
triibhals
 
Fecha de Ingreso: agosto-2010
Mensajes: 93
Antigüedad: 13 años, 8 meses
Puntos: 1
Problema al Cerrar Pagina

El Problema es que quiero que cuando cierra la ventana me de un alert de que si realmente quiero cerrar esa pagina, COnsegui ese codigo. Pero solo funcion en iExplorer, Alguien conoce otra opcion que no sea onBeforeUnload?

Código:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cerrar</title>
</head>
<script language="JavaScript">
function cierrame() { 
event.returnValue = "Escribe el texto a mostrar ";
}
</script>
<body onBeforeUnload="cierrame()">
<div align="center"><strong>Contenido</strong></div>
</body>
</html>
Su ayuda seria bienvenida