Hola
Un ejemplo de lo intento que entiendas
a.html
Código Javascript
:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>
<script type="text/javascript">
function abrir () {
var ancho = parseInt(((screen.width) / 2) - 150);
var alto = parseInt(((screen.height) / 2) - 150);
window.open('a.asp','popup','resizable=yes, top='+alto+', left='+ancho+', width=300 ,height=300, menubar=no, scrollbars=no, status=no, titlebar=no, toolbar=no,directories=no');
}
</script>
</head>
<body>
<a href="javascript:void(0);" target="popup" hreflang="es" onclick="abrir();">Abrir POPUP</a><br />
<form name="form1">
Nombre: <div id="nombre"></div>
Fecha: <div id="fecha"></div>
</body>
</html>
a.asp
Código ASP:
Ver original<html>
<head>
<script type="text/javascript">
function enviar_datos_cliente(){
window.opener.document.getElementById("nombre").innerHTML ="<%=Request.Form("nombre")%>";
window.opener.document.getElementById("fecha").innerHTML ="<%=Date()%>";
self.close()
}
</script>
</head>
<body>
<% if Request.Form("nombre") = "" then%>
<form action="a.asp" method="post">
<input type="text" value="" name="nombre" /><br />
<input type="submit" value="Enviar" />
</form>
<%
else
%>
<script type="text/javascript">
enviar_datos_cliente()
</script>
<%end if%>
</body>
</html>
Suerte