Comment Comment by some I would prefer the loop this way: for each(a in links) if (a.host && (a.host!=thisdomain || String(a).match(/item\?id=/))) a.target = "_blank"; parent some 18 years ago