Trinian
10-29-2003, 06:30 PM
hi everyone
I have created a popup that displays a product I wish to display as a monthly special. This popup pops up when the user loads the page. That is the easy part, I can do that.
What I am having problems with is I want the user to be able to select "Buy Now" or "No Thanks" buttons. If the user selects "no thanks" I just close the window and they are back at the home page. If the user selects "Buy Now" the popup closes and the order page opens in the main window. This is were I am stuck... :(
I have been trying to create a function with "window.opener.document.action = "URL OF ORDER PAGE"+Productcode
and then a <a href="javascript:functionname(productcode-eg5454);" but with no luck.
If anyone could help me with this that would be great.
Thanks Heaps
Trinian.
I have created a popup that displays a product I wish to display as a monthly special. This popup pops up when the user loads the page. That is the easy part, I can do that.
What I am having problems with is I want the user to be able to select "Buy Now" or "No Thanks" buttons. If the user selects "no thanks" I just close the window and they are back at the home page. If the user selects "Buy Now" the popup closes and the order page opens in the main window. This is were I am stuck... :(
I have been trying to create a function with "window.opener.document.action = "URL OF ORDER PAGE"+Productcode
and then a <a href="javascript:functionname(productcode-eg5454);" but with no luck.
If anyone could help me with this that would be great.
Thanks Heaps
Trinian.