Submit to parent.opener
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Submit to parent.opener

From: Alan Little <alan@n-o-s-p-a-m-phorm.com>
Date: Wed Apr 12 2006 - 02:24:46 CEST

I have a popup which contains a frame set; one of the frames contains a
form. When the form is submitted, I want it to go back to the opener of the
popup. I have:

  document.forms[0].target = parent.opener;

But on submit it opens a new window. If I put:

  document.write(parent.opener.name);

it gives me the correct value, so I know I'm pointing to the right place.
Any idea why this doesn't work and/or how to get it to?

-- 
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Received on Mon May 1 04:55:46 2006