Connecting Tech Pros Worldwide Forums | Help | Site Map

submit to opener

Newbie
 
Join Date: Nov 2008
Posts: 2
#1: Nov 18 '08
I have a page, which opens a popup window through javascript. I want to get a form filled on this and get closed, sumbitting data to opener, when submitted. How can I go about this?

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Nov 18 '08

re: submit to opener


Use the target to point to the parent window using its name (if it has one).
Newbie
 
Join Date: Nov 2008
Posts: 2
#3: Nov 18 '08

re: submit to opener


Quote:

Originally Posted by acoder

Use the target to point to the parent window using its name (if it has one).

can you please show me the code? i am a novice...thx
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Nov 18 '08

re: submit to opener


Set the target in the HTML (see link ) or set using javascript:
Expand|Select|Wrap|Line Numbers
  1. //frm is a reference to the form:
  2. frm.target = "win1";
Reply