homepage Welcome to WebmasterWorld Guest from 54.167.174.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
Forcing link to revert back to original window?
adamnichols45

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3677402 posted 9:27 am on Jun 18, 2008 (gmt 0)

On my main content page I have a link that opens a new window up that displays a large photo of he product.

Under that is an add to basket button.

I would like the add to basket button to add the product but do so in the original window.

Any help guys much appreciated.

 

Scally_Ally

5+ Year Member



 
Msg#: 3677402 posted 1:36 pm on Jun 18, 2008 (gmt 0)

you could use some javascript in order to redirect the the main window to an "add to basket" script. something like:

onClick="window.opener.location='add_to_cart.php?pID=1'"

Also you could submit a form and target the main window.
Ally

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved