<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alex's  Rocket &#187; Web Standards</title>
	<atom:link href="http://klalex.com/category/web-standards/feed/" rel="self" type="application/rss+xml" />
	<link>http://klalex.com</link>
	<description>Developing web applications, startups, technologies</description>
	<lastBuildDate>Tue, 21 Jun 2011 13:45:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Open link in a new window in XHTML 1.0 Strict</title>
		<link>http://klalex.com/2009/06/open-link-in-a-new-window-in-xhtml-10-strict/</link>
		<comments>http://klalex.com/2009/06/open-link-in-a-new-window-in-xhtml-10-strict/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 21:33:35 +0000</pubDate>
		<dc:creator>klalex</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[new window]]></category>
		<category><![CDATA[target]]></category>

		<guid isPermaLink="false">http://klalex.com/?p=51</guid>
		<description><![CDATA[As you may notice using target=&#8221;_blank&#8221; breaks XHTML 1.0 Stric validation. And here you are a solution with jQuery: Add rel=&#8221;external&#8221; for links that you want to be opened in a new window Include the following jQuery script: $&#40;function&#40;&#41; &#123; &#160; $&#40;&#34;a[rel*='external']&#34;&#41;.click&#40;function&#40;&#41; &#123; &#160; &#160; window.open&#40;$&#40;this&#41;.attr&#40;&#8216;href&#8217;&#41;, &#8216;external&#8217;, &#8221;&#41;; &#160; &#160; return false; &#160; &#125;&#41;; &#125;&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>As you may notice using target=&#8221;_blank&#8221; breaks XHTML 1.0 Stric validation. And here you are a solution with jQuery:</p>
<ol>
<li>Add rel=&#8221;external&#8221; for links that you want to be opened in a new window</li>
<li>Include the following jQuery script:<br/>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;">$<span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;a[rel*='external']&quot;</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; window.<span class="kw3">open</span><span class="br0">&#40;</span>$<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">attr</span><span class="br0">&#40;</span><span class="st0">&#8216;href&#8217;</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="st0">&#8216;external&#8217;</span><span class="sy0">,</span> <span class="st0">&#8221;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">false</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</div>
</li>
</ol>
<p>But I agree that it&#8217;s annoying when link is opening in new tab(window) without your acceptance. Even for external links users can use hot key combination (Command + T in mac os or Ctrl + T in windows) to open a link in new tab. We should give user a choice to decide personally whether he/she wants to open a link in the same window or external. Or at least to notify somehow. Using popup window or even icon near the link that tells user that this link is external.</p>
]]></content:encoded>
			<wfw:commentRss>http://klalex.com/2009/06/open-link-in-a-new-window-in-xhtml-10-strict/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bring IE 6 down</title>
		<link>http://klalex.com/2009/04/bring-ie-6-down/</link>
		<comments>http://klalex.com/2009/04/bring-ie-6-down/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 21:36:09 +0000</pubDate>
		<dc:creator>klalex</dc:creator>
				<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://klalex.com/?p=25</guid>
		<description><![CDATA[Bring IE 6 down &#8211; we have been dreaming about it long time.. &#8220;It&#8217;s time to unite&#8221;!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bringdownie6.com/">Bring IE 6 down</a> &#8211; we have been dreaming about it long time.. &#8220;It&#8217;s time to unite&#8221;!</p>
]]></content:encoded>
			<wfw:commentRss>http://klalex.com/2009/04/bring-ie-6-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

