Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/11/2015, 12:37
Avatar de chronos682
chronos682
 
Fecha de Ingreso: febrero-2004
Ubicación: Tunja - Boyacá - Colombia
Mensajes: 627
Antigüedad: 20 años, 3 meses
Puntos: 69
Respuesta: Mostrar div con contenido html al cerrar el browser

Y así no funciona?

Código Javascript:
Ver original
  1. var PreventExitSplash=false;
  2. function DisplayExitSplash() {
  3.     if (PreventExitSplash == false) {
  4.         window.scrollTo(0, 0);
  5.         document.getElementById('myDiv').innerHtml = '<img src="example.jpg" />';
  6.     }
  7. }
  8. window.onbeforeunload=DisplayExitSplash;
__________________
Si te gustó la respuesta dale +1

HERNÁN G. SIABATO M.
[email protected]