Forum Moderators: open

Message Too Old, No Replies

change main window- close flash popup

how to change the 1st window and close the new one

         

David_M

2:13 am on Apr 27, 2007 (gmt 0)

10+ Year Member



I have my main landing page, where users can click a link that will give them a popup window with flash.
At the end of the flash is an order button.
I'd like when the order button is pushed for the main landing window to go to the order page, and the flash popup to close.

I've tried
on(release) {
getURL("order.html", "_main");
getURL ("javascript:self.close();")
}

But this just opens a new window, and then closes the popup and the new window.

Any ideas?

Thanks.

David_M

5:49 am on Apr 27, 2007 (gmt 0)

10+ Year Member



Got it partially working:

on (release) {
getURL("javascript:window.opener.location.href = '/order/';");
getURL ("javascript:self.close();")
}

Works on firefox but not IE, and if they closed the parent window, then it simply closes without making a new one.

Ideas?

David_M

10:46 am on Apr 27, 2007 (gmt 0)

10+ Year Member



Maybe talking to myself here, but got it!

on (press) {
getURL("javascript:window.opener.location.href = '/order/'; self.close();");
}