Viewing posts from January, 2012Matt Mansour 1 year, 4 months ago
A recent web development project of mine required integration of a fancy looking Twitter social widget. Luckily the Content Management System I used has a Twitter API module, which gave me complete freedom to implement the design requirements. However, the Twitter module that shipped with that CMS did not open a new browser window when a link in the Twitter feed was clicked. I did not want to hack into the Twitter module of the CMS in this context. I ended up implementing the following JQuery snippet; which made the task of opening a new browser window easy. With the code snippet below all anchor tags in the 'tweets' class get their target attributes set to '_blank'.
Page 1 of 1: