Is this possible with Javascript?

B

bAz

I was just wondering if this was possible.

I have a website that opens a popup, from that popup the user can
submit a form, when the form is submitted I would like for the link
once the form is submitted to appear in the original window (not the
popup).

Thanks for any help you might give.
 
I

Ian L

I was just wondering if this was possible.

I have a website that opens a popup, from that popup the user can
submit a form, when the form is submitted I would like for the link
once the form is submitted to appear in the original window (not the
popup).

Thanks for any help you might give.

Okay, I'm not sure whether you want a link to appear or to have the
link to bring the original window over to that URL. Whichever the
cause, the pop-up can refer to it's parent window (the window that
opened the pop-up) as 'opener'. For example, 'opener.alert("This is a
alert");' will cause it's parent window to alert its user "This is a
alert". So if you need to change the original window's URL, you can
refer it as 'opener.location =
"http://www.your-server.com/cgi-bin/complete.cgi";'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top