jessnoonyes Posted January 15, 2008 Share Posted January 15, 2008 Hi guys! I have a link on my website that, when clicked, I would like to open in another window. How would I write that? I'm used to writing target="_blank" but I'm not as familiar with php. The code I have is: <a href="<?php echo $ps->organize_url(); ?>">Link</a> Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/86055-open-link-in-new-window/ Share on other sites More sharing options...
awpti Posted January 15, 2008 Share Posted January 15, 2008 <a href="<?php echo $ps->organize_url(); ?>" target="_bank">Link</a> That's it. Quote Link to comment https://forums.phpfreaks.com/topic/86055-open-link-in-new-window/#findComment-439460 Share on other sites More sharing options...
pocobueno1388 Posted January 15, 2008 Share Posted January 15, 2008 You would write it just the same <a href="<?php echo $ps->organize_url(); ?>" target="_blank">Link</a> Quote Link to comment https://forums.phpfreaks.com/topic/86055-open-link-in-new-window/#findComment-439462 Share on other sites More sharing options...
jessnoonyes Posted January 15, 2008 Author Share Posted January 15, 2008 Perfect! Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/86055-open-link-in-new-window/#findComment-439465 Share on other sites More sharing options...
pocobueno1388 Posted January 15, 2008 Share Posted January 15, 2008 Don't forget to press "topic solved". Quote Link to comment https://forums.phpfreaks.com/topic/86055-open-link-in-new-window/#findComment-439485 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.