PDA

View Full Version : Popup Window with redirection after close


details
11-27-2002, 08:15 PM
I have a page that asks for the users email. Once the user fills in his email, there is a popup window with the email be auto populated asking for more information from the user. Once the user fills in the info, with they click submit, I would like the popup to close and redirect the parent window to a thank you page.

I cannot use the remote script below because I am sending info to the popup with a form.

function remote2(){

win2=window.open("moreinfo.htm","","width=150,height=150")
win2.creator=self
}

Any suggestions or has anyone ever ran across a script like this?

glenngv
11-28-2002, 09:15 AM
in the popup:
if (opener && !opener.closed) opener.location.href="thankyou.htm";
window.close();