<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Opening Links In a New Window</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/opening_links_in_a_new_window_html_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 03 Jan 2005 06:39:02 -0000</lastBuildDate><item><title>Re: Opening Links In a New Window</title><link>http://www.tech-recipes.com/rx/248/opening-links-in-a-new-window/#comment-2767213</link><description>&lt;p&gt;it was a stroke of good luck tht i found the html code to open links in new windows here. thanx to AlexTheBeast. although he says he hates this standard method, it proved very useful for me&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ACPRathore</dc:creator><pubDate>Mon, 03 Jan 2005 06:39:02 -0000</pubDate></item><item><title>Re: Opening Links In a New Window</title><link>http://www.tech-recipes.com/rx/248/opening-links-in-a-new-window/#comment-2767212</link><description>&lt;p&gt;Hello Alex,&lt;/p&gt;&lt;p&gt;There are two things I'd like to say.  First, forcing users into a new window can be good if you want them to see information on another site without them leaving yours.  Of course, when they're done on the "popped-up" site and close the window, they'll be back on your site!&lt;/p&gt;&lt;p&gt;Second, there's actually a better way to force this new window if you are using XHTML 1.0 or higher code.  Simply putting target="_blank" in your anchor DOES work, but it does NOT validate with the W3C.  The preferred way is to add a little javascript like this:&lt;br&gt;&lt;code&gt;&amp;lt;a onclick="this.target='_blank';" href="http://www.tech-recipes.com"&amp;gt;Tech-Recipes.com&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;That will do it, AND will validate.&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Chris&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 29 Jun 2004 21:20:32 -0000</pubDate></item></channel></rss>