Popup window problems in Netscape

Results 1 to 2 of 2

Thread: Popup window problems in Netscape

  1. #1
    Join Date
    Dec 1969

    Default Popup window problems in Netscape

    Hi there. I use the following code in my pop-up windows to set a form value on the opener window equal to the value entered in the form on the pop-up, then the code closes the pop-up. Here&#039;s the function:<BR><BR>&#060;SCRIPT LANGUAGE="JavaScript"&#062;<BR>&#060;!--<BR>function setForm() {<BR> opener.parent.BottomReason.frmreasons.RefComments. value = document.frmComments.txtComment.value;<BR> self.close();<BR> }<BR>//--&#062;<BR>&#060;/script&#062;<BR><BR>I call this function using the onSubmit event handler. This works perfect in IE! However, in Netscape, the window won&#039;t close. The opener form value populates correctly, but the pop-up never closes. So I tried setting a timeout (setTimeout(&#039;window.close&#039;,1000);), again called with the onSubmit event handler. Still doesn&#039;t work. Does Netscape not recognize window.close or self.close? I thought the Netscape JavaScript documentation said this was possible.<BR><BR>Thanks for all and any help.

  2. #2
    Linda Pyrc Guest

    Default It should work

    Ive used code simular to this several times and never had any problems. The only difference is that I use window.close(); but I cant see why this would make any difference.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts