JDMallion Posted October 1, 2007 Share Posted October 1, 2007 Hi Guys, I have a page that automatically spits out a load of links in the following format: <a href="LINK">NAME OF LINK</a> <a href="LINK">NAME OF LINK</a> <a href="LINK">NAME OF LINK</a> etc.... Without editing how these are spat out, would it be possible and if so what is the best way of having a tickbox at the top of the page which forces all links to open in a new tab? Without Javascript (hence in this section) if possible and without having to reload the page. Cheers for any help! Link to comment https://forums.phpfreaks.com/topic/71345-solved-force-new-window/ Share on other sites More sharing options...
rarebit Posted October 1, 2007 Share Posted October 1, 2007 <a href="LINK" target='mywin'>NAME OF LINK< /a> Link to comment https://forums.phpfreaks.com/topic/71345-solved-force-new-window/#findComment-359112 Share on other sites More sharing options...
JDMallion Posted October 1, 2007 Author Share Posted October 1, 2007 Thx Link to comment https://forums.phpfreaks.com/topic/71345-solved-force-new-window/#findComment-359116 Share on other sites More sharing options...
ToonMariner Posted October 1, 2007 Share Posted October 1, 2007 you should rea\lly use javascript for opening new pages - this is to do with visually impaired people who may get 'lost' if windows open without warning and they may never visit your site again. Link to comment https://forums.phpfreaks.com/topic/71345-solved-force-new-window/#findComment-359184 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.