Posted By

virgil on 10/14/10


Tagged


Versions (?)

target = _blank fix


 / Published in: jQuery
 

  1. function openInNewWindow(target) {
  2. $(target + " a[rel='blank']").each(function() {
  3. $(this).attr({
  4. href: "javascript:window.open('" + $(this).attr("href") + "');void(0);",
  5. title: "Link opens in new window/tab"
  6. });
  7. });
  8. }

Report this snippet  

You need to login to post a comment.