Google Answers Logo
View Question
Q: Creating a link in a new window in my converted Oscommerce shopping directory ( No Answer,   0 Comments )
Subject: Creating a link in a new window in my converted Oscommerce shopping directory
Category: Computers
Asked by: hartlepoolfc-ga
List Price: $4.00
Posted: 26 Nov 2006 17:04 PST
Expires: 26 Dec 2006 17:04 PST
Question ID: 785783
Does anyone know what code I need to add to the following for it to
open in a new window??

$lc_align = 'center';
$lc_text = '<a href="' . tep_href_link(FILENAME_REDIRECT,
'action=url&goto=' . urlencode($listing['products_url'])) . '">' .
tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) .

Should I insert "target="_blank" ?

Clarification of Question by hartlepoolfc-ga on 26 Nov 2006 17:10 PST
It may be a bit clearer if you see the original post on the OSC forums.

Request for Question Clarification by sublime1-ga on 26 Nov 2006 17:40 PST

Yes, I believe this will work:

$lc_align = 'center';
$lc_text = '<a href="' . tep_href_link(FILENAME_REDIRECT,
'action=url&goto=' . urlencode($listing['products_url'])) . '"
target="_BLANK">' .
tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) .

Let me know...

There is no answer at this time.

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy