Forum Moderators: open

Message Too Old, No Replies

Refreshing parent window?

         

adammc

2:30 am on Aug 21, 2006 (gmt 0)

10+ Year Member



Hi Guys,

Need a bit of help here...
I am opening a new window using this code:

[php]
echo "<a href='../cart/phpcart.php?state=$_SESSION[state]&action=add&id=$productCode&descr=$description&price=$price&quantity=1' target='new' class='cart'>
<img src='../images/trolley.gif' border='0' />&nbsp;Add to cart</a>";
[/php]

On the window that pops up a have a link to close the window:
[php]
<a href="javascript:window.close();" class=headings title='continue shopping'>Continue Shopping</A>
[/php]

Upon clicking continue shopping I would like the window to close and the parent (1st page) to refresh.

How would I do this?

adni18

3:17 am on Aug 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



top.close();top.opener.location.reload();

:)