Change the target to '_blank' for news post detail print links

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
User avatar
tinhat
Forum Members
Forum Members
Posts: 65
Joined: Fri May 23, 2008 6:33 am

Change the target to '_blank' for news post detail print links

Post by tinhat »

The code below is intended to be used at the bottom of an HTML document. You could also call it with the document onLoad event.

[php]

node = document.getElementById('NewsPostDetailPrintLink').getElementsByTagName('A')[0];
node.setAttribute('target','_blank');

[/php]
Post Reply

Return to “Tips and Tricks”