Ver Mensaje Individual
  #7 (permalink)  
Antiguo 01/03/2009, 15:28
Avatar de jeybi
jeybi
 
Fecha de Ingreso: julio-2008
Ubicación: Mexico
Mensajes: 130
Antigüedad: 15 años, 10 meses
Puntos: 10
Respuesta: Ayuda Popup De Salida.

function popup() {
var url = "http://www.tibia.com"; //url absoluta o relativa de tu pagina
var width = screen.width; //Ancho total, dejalo asi para fullscreen
var height = screen.height; //Alto total, dejalo asi para fullscreen
var left = 50 //Coordenada X, no funciona si width = screen.width
var top = 50 //Coordenada Y,no funciona si height = screen.heigh
//No tocar
var windowops = "left="+left+",top="+top+",width="+width +",height="+height;
window.open(url, "mi_pagina", windowops);
}

Hay tienes el script ponlo en el head. Para usarlo: <body onunload="popup()">.

PD: No funcionara, todos los navegadores modernos bloquean popups al cerrar ventanas, pero si quieres probarlo, en firefox herramientas -> Opciones -> Contenido -> Desactiva bloquear ventanas emergentes y veras, que funciona. Suerte. y no hay otra forma, el usuario manda.

Última edición por jeybi; 01/03/2009 a las 15:36