function replace() { opener.location.replace("page1.html", opener.name); opener.document.forms[0].field.value = document.forms[0].rep.value; } just comment the first line and see, it will work. actually when u are replacing the window1, then it is not the opener window. so opener.docum... will not work. change your logic. sushil. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010627/3a86f47e/attachment.htm>