<!--test.html-->
<html>
<body>
<input type="text" name="txt1">
<input type="text" name="txt2">
<input  type="button" onclick='window.open("test1.html","","")' value="click1">
<input  type="button" onclick='window.open("test2.html","","")' value="click2">
</body>
</html>
<!--test1.html-->
<html>
<body >
<input type="text" name="txt">
<input type="button" onclick="opener.document.all.txt1.value=document.all.txt.value;self.close()" value="refresh">
</form>
</body>
</html>
<!--test2.html-->
<html>
<body >
<input type="text" name="txt">
<input type="button" onclick="opener.document.all.txt2.value=document.all.txt.value;self.close()" value="refresh">
</form>
</body>
</html>