0
votes

i'm using google gadget "rss tabber" http://www.gmodules.com/ig/creator?synd=open&url=http%3A%2F%2Fclingman.org%2Fplatypus%2Fcustomized-rss-feeds.xml&lang=en

I tried to use jquery to force all the link to open in new window but failed. anyone got suggestion how to do this ? force all the link to be open in new windows?

$('a[href^="http://"]') .attr({ target: "_blank", title: "Opens in a new window" });

1

1 Answers

0
votes

If you look at the code in firebug the links are actually inside there own iframe. I'm guessing thats where the problem lies.

$('iframe').contents().find("a[href^='http://']").attr('target','_blank');

Try that.