stickynote427 Posted May 17, 2009 Share Posted May 17, 2009 Is there some way in PHP (or some other language maybe?) that I can automatically set a link's TARGET attribute to _blank if that link does not point to a page on my site? For example, if I have <a href="http://www.mysite.com/">My Site</a>, it should be left alone, but if I have <a href="http://www.phpfreaks.com">PHP Freaks</a>, it should automatically open in a new window when clicked. Any information is helpful. Thanks. Blake Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.