Click to See Complete Forum and Search --> : Help with a pop-up window, please


laTortuga
12-03-2002, 08:21 PM
Hello

I have a pop-up window which contains an e.mail form. The pop-up seems to work just fine. When the form is sent, another page appears to thank the user for submitting the form.

This form appears in the pop-up window, whci I don't really want, and wonder what JavaScript code I need to use (in the pop-up window Web page presumably) to load a normal Web page size 'Thank You' page.

That is, how can I break out of the pop-up window and, in fact, make it disappear to give way to a normal size Web 'Thank you' page.

Many thanks for any ideas.

LaTortuga

Beach Bum
12-03-2002, 08:58 PM
i agree with you that pop-up windows are a bad thing. these days many people surf with pop-up stoppers due to all the ads.

let's see if i've got this straight. you want to replace the page rather than have a pop-up? one page to be replaced by another page which has a form, to be replaced by another page which says thankyou.

the javascript to replace a page is

self.location.replace("xxxx.htm")

so when you want to present the page with the form, replace xxxx.htm with the new page name. then the same for the thankyou page.

laTortuga
12-04-2002, 04:34 AM
Hello Beach Bum

Thank you for your message.

No, not quite.

Imagine you are at a normal web page. You click on a link which says 'Contact' and a pop up window appears which has a form in it. That's fine.

Now, when the visitor completes the form and presses 'Submit', a 'Thank you' page appears, which is also what I want, but it appears in the pop up window, and not as a normal sized Web page. That's not fine.

Do I still use your

self.location.replace("xxxx.htm")?

Many thanks again for your post.

LaTortuga