A lo mejor este ejemplo te sirve:
en la pagina Principal
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> alert("Pagina principal cargando ...");
function abrePopup() {
var day = new Date();
var id = day.getTime();
window.open("popup.html", id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400');
}
<input type="button" value="abre popup" onclick="abrePopup();"/>
En popup.html
Código HTML:
Ver original<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> function reloadPrincipal() {
window.opener.location.reload();
}
<input type="button" value="reload principal" onclick="reloadPrincipal();" />