This is actually "unofficial code" that I wrote, not Dynamic Drive code. But it's based upon code from Dynamic Drive and/or JavaScriptKit.
First thing I'd suggest is notice this line:
Code:
feedmarkup += '<a href="' + feed[i].link + '">';
That's what creates the main link for each feed's item. If you want them to open up in a new tab, change to:
Code:
feedmarkup += '<a href="' + feed[i].link + '" target="_new">';
"_new" will establish a reusable window/tab for these links. If you want all of them to have their own window or tab, use "_blank".
If it's more of an issue of links within the feed items, that is links other than the main feed link, that can be dealt with in another way. Let me know.
The browser cache may have to be emptied and/or the page refreshed to see changes.
Alternatively, you could add the lines as shown (highlighted):
Code:
document.getElementById(uniquename).innerHTML = feedmarkup;
var feedlinks = document.getElementById(uniquename).getElementsByTagName('A'), a = -1;
while(++a < feedlinks.length){
feedlinks[a].target = '_blank';
}
same caveat about _blank vs _new as in my previous idea. This one, however, will get all links in each feed item, not just the main item link.
Bookmarks