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! 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. 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> 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! 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". 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
Archived
This topic is now archived and is closed to further replies.