Un esempio
file test152.html
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body >
<div id="d1">
e cioè? non ho capito bene come si fa.. se puoi spiegarmelo con un esempio.... non è che sono molto ferrato su JS
</div>
<script language="JavaScript" type="text/javascript">
<!--
var a = window.open("test152b.html","hhhh","");
//-->
</script>
<input type="button" value="clicca" onclick="a.close()";
</body>
</html>
file test152b.html
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<div id="d000"></div>
<input type="text" id="t000" size="80">
<script language="JavaScript" type="text/javascript">
<!--
document.getElementById('d000').innerHTML = window.opener.document.getElementById('d1').innerHTML;
document.getElementById('t000').value = window.opener.document.getElementById('d1').innerHTML;
//-->
</script>
</body>
</html>