Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup windows and Frames

Status
Not open for further replies.

KellyHero

Programmer
Jun 10, 2002
14
US
I have a client who has an online store, which was developed in frames (not by my choice - I hate frames!). What we would like to do is advertise a new product in a popup window that opens automatically from the frames page. Once the user clicks an "Order" button or link in the popup window, we would like to have the popup window close and the page that product is displayed on loaded inside the main frame.

For example, when a user enters the frames page, an "About Us" page loads into the "main" frame. We want the popup to automatically open from the frames page. The user would then have the choice to either close the popup window, or click a link or button to order the product. Then the popup window would close and the page that the product is displayed on would then load inside the "main" frame of the parent window.

Is this at all possible?
 
yes -
1. name your frames in the frameset
2. your popup page should have links like:

<a href=&quot;product1.html&quot; target=&quot;mainFrameName&quot; onclick=&quot;window.close();&quot;>Product 1</a>
<a href=&quot;product2.html&quot; target=&quot;mainFrameName&quot; onclick=&quot;window.close();&quot;>Product 2</a>
<a href=&quot;#&quot; onclick=&quot;window.close();&quot;>Close</a>

================================================================= ======================================

if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top