The IJC Digital Blog

Viewing posts from January, 2012

JQuery: Force Open New Window

Matt Mansour 5 years, 10 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'.

read more / 0 comments

Page 1 of 1:

  • 1