<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Unobtrusive Javascript pop-up links</title>
	<link>http://www.mattking.org/2007-05/unobtrusive-javascript-pop-up-links.html</link>
	<description>Too many projects, too little time</description>
	<pubDate>Thu, 20 Nov 2008 15:46:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Peter Marreck</title>
		<link>http://www.mattking.org/2007-05/unobtrusive-javascript-pop-up-links.html#comment-1895</link>
		<author>Peter Marreck</author>
		<pubDate>Tue, 15 Apr 2008 22:55:53 +0000</pubDate>
		<guid>http://www.mattking.org/2007-05/unobtrusive-javascript-pop-up-links.html#comment-1895</guid>
		<description>Here's a better way to use Prototype to do this. It relies however on recent Prototype $$ changes:

function init_external_links() {
  $$('a[rel~=external]').each(function(link){link.target = "_blank";});
}
Event.observe(window,'load',init_external_links);

This will match on any A tag with a rel with "external" somewhere in the value. So it would still work with rel="external nofollow" type attributes.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a better way to use Prototype to do this. It relies however on recent Prototype $$ changes:</p>
<p>function init_external_links() {<br />
  $$(&#8217;a[rel~=external]&#8217;).each(function(link){link.target = &#8220;_blank&#8221;;});<br />
}<br />
Event.observe(window,&#8217;load&#8217;,init_external_links);</p>
<p>This will match on any A tag with a rel with &#8220;external&#8221; somewhere in the value. So it would still work with rel=&#8221;external nofollow&#8221; type attributes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
