<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: How do I automatically create a new window, blog stylee?</title>
      <link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee/</link>
      <description>Comments on Ask MetaFilter post How do I automatically create a new window, blog stylee?</description>
	  	  <pubDate>Sat, 21 Jul 2007 12:07:10 -0800</pubDate>
      <lastBuildDate>Sat, 21 Jul 2007 12:07:10 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: How do I automatically create a new window, blog stylee?</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee</link>	
  	<description>Blogger.com template query - I&apos;m using the Minima Ochre template. What HTML can I add to the template to make all links open in a new window? &lt;br /&gt;&lt;br /&gt; I love linking to interesting things I find as I trot round the web on my blog. However, I&apos;d also like those interesting things to open in a new window/tab when the user clicks on the link.&lt;br&gt;
&lt;br&gt;
I know I can add &apos;target=&quot;_blank&quot; &apos; to the HTML of every link I make, but I don&apos;t want to have to do this &lt;em&gt;for every link I create&lt;/em&gt;. I&apos;d like to have some HTML in the template that will automatically create a &quot;new window link&quot; for me.&lt;br&gt;
&lt;br&gt;
Is this possible? If so, how?</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.67496</guid>
  	<pubDate>Sat, 21 Jul 2007 11:48:05 -0800</pubDate>
  	<dc:creator>Rabulah</dc:creator>
	
	<category>blog</category>
	
	<category>blogger</category>
	
	<category>html</category>
	
	<category>target</category>
	
</item>
<item>
  	<title>By: beaucoupkevin</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1011301</link>	
  	<description>The following HTML code will enable you to open all of your links in a new window. &lt;br&gt;
&lt;br&gt;
&lt; base  main&gt;&lt;br&gt;
&lt;br&gt;
Stick it between your &lt; head&gt; and &lt; /head&gt; tags.&lt;br&gt;
&lt;br&gt;
(Remove the spaces there, but I think you knew that.)&lt;/&gt;&lt;/&gt;&lt;/&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1011301</guid>
  	<pubDate>Sat, 21 Jul 2007 12:07:10 -0800</pubDate>
  	<dc:creator>beaucoupkevin</dc:creator>
</item>
<item>
  	<title>By: beaucoupkevin</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1011305</link>	
  	<description>Er.  That didn&apos;t work.&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&amp;lt;base target=&amp;quot;main&amp;quot;&amp;gt;&lt;/code&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1011305</guid>
  	<pubDate>Sat, 21 Jul 2007 12:08:47 -0800</pubDate>
  	<dc:creator>beaucoupkevin</dc:creator>
</item>
<item>
  	<title>By: ph00dz</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1011351</link>	
  	<description>If you put this in the bottom of your html, right before the end of the body tag, this&apos;ll do the job.  You can also modify it slightly and add a bit of logic to get a bit more control over what, exactly, becomes an external link.&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
&amp;lt;script&amp;gt;&lt;br&gt;
var links = document.getElementsByTagName(&amp;quot;a&amp;quot;); &lt;br&gt;
for (var i = 0; i &lt; links.length; i++)br&gt;
  { &lt;br&gt;
  links[i].target = &apos;ext&apos; + i;&lt;br&gt;
  }&lt;br&gt;
&amp;lt;/script&amp;gt;&lt;br&gt;
&lt;/&gt;&lt;/pre&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1011351</guid>
  	<pubDate>Sat, 21 Jul 2007 13:10:45 -0800</pubDate>
  	<dc:creator>ph00dz</dc:creator>
</item>
<item>
  	<title>By: ph00dz</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1011352</link>	
  	<description>err... there&apos;s a weird br&amp;gt; in there. (Stupid previewer... you have failed me!)&lt;br&gt;
&lt;br&gt;
Let&apos;s just try it this way:&lt;br&gt;
&lt;br&gt;
var links = document.getElementsByTagName(&amp;quot;a&amp;quot;); &lt;br&gt;
for (var i = 0; i &lt; links.length; i++)br&gt;
  { &lt;br&gt;
  links[i].target = &apos;ext&apos; + i;&lt;br&gt;
  }&lt;/&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1011352</guid>
  	<pubDate>Sat, 21 Jul 2007 13:12:07 -0800</pubDate>
  	<dc:creator>ph00dz</dc:creator>
</item>
<item>
  	<title>By: Mikey-San</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1011582</link>	
  	<description>Ugh. Please don&apos;t make my browser do what &lt;em&gt;you&lt;/em&gt; want. If I want a link in a new window, I&apos;m perfectly capable of doing that myself.&lt;br&gt;
&lt;br&gt;
Your site&apos;s look and feel is your domain; my browser is my domain.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1011582</guid>
  	<pubDate>Sat, 21 Jul 2007 18:39:42 -0800</pubDate>
  	<dc:creator>Mikey-San</dc:creator>
</item>
<item>
  	<title>By: Rabulah</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1011908</link>	
  	<description>beaucoupkevin &amp;amp; ph00dz - I tried both of your techniques that you kindly suggested, but both times Blogger throws up an error when I try to preview.&lt;br&gt;
&lt;br&gt;
Mikey-San - I don&apos;t really see how your response answers my question.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1011908</guid>
  	<pubDate>Sun, 22 Jul 2007 08:48:25 -0800</pubDate>
  	<dc:creator>Rabulah</dc:creator>
</item>
<item>
  	<title>By: metabeing</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1011931</link>	
  	<description>I agree with Mikey-san.  It&apos;s about web browsing philosophy, but it&apos;s important.  Whether a link opens in a new window should be up to the person viewing the page, not the page&apos;s author.&lt;br&gt;
&lt;br&gt;
If I want a link to open in a new window, I&apos;ll use the contextual menu (I think it&apos;s a right-click if you&apos;re a windoid).  If you force my browser to open a new window when I click a link, I can pretty much guarantee that your site will disappear from my bookmarks forever.&lt;br&gt;
&lt;br&gt;
Are you afraid that people won&apos;t hit the back button after you&apos;ve vectored them to some new site?  The answer is to make your content compelling enough that they will come back or choose to use the contextual menu (as I do) to preserve the originating page.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1011931</guid>
  	<pubDate>Sun, 22 Jul 2007 09:41:27 -0800</pubDate>
  	<dc:creator>metabeing</dc:creator>
</item>
<item>
  	<title>By: Rabulah</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1012495</link>	
  	<description>I didn&apos;t ask &amp;quot;Is it a good idea for $this to happen?&amp;quot;. I asked how I could make it happen. If I had wanted to discuss whether it was a good idea or not, that would have been my question. Since it wasn&apos;t, I&apos;d appreciate it if those responding actually read the original question, and responded to it, rather than the moral issues surrounding it.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1012495</guid>
  	<pubDate>Mon, 23 Jul 2007 02:20:41 -0800</pubDate>
  	<dc:creator>Rabulah</dc:creator>
</item>
<item>
  	<title>By: Mikey-San</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1015797</link>	
  	<description>&lt;i&gt;Mikey-San - I don&apos;t really see how your response answers my question.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
No offense, but I don&apos;t really see how your question is the best idea in the first place.&lt;br&gt;
&lt;br&gt;
Sometimes the real solutions are to the questions we should&apos;ve asked, but didn&apos;t. In your case, the best answer is not to do what you&apos;re attempting to implement.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1015797</guid>
  	<pubDate>Wed, 25 Jul 2007 18:58:50 -0800</pubDate>
  	<dc:creator>Mikey-San</dc:creator>
</item>
<item>
  	<title>By: Rabulah</title>
  	<link>http://ask.metafilter.com/67496/How-do-I-automatically-create-a-new-window-blog-stylee#1016548</link>	
  	<description>&lt;em&gt;No offense, but I don&apos;t really see how your question is the best idea in the first place.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
I didn&apos;t ask if it was a good idea. &lt;strong&gt;I asked how it was done&lt;/strong&gt;. Pretty clearly too, I think. &lt;br&gt;
&lt;br&gt;
An response that doesn&apos;t answer the question is worse than useless.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.67496-1016548</guid>
  	<pubDate>Thu, 26 Jul 2007 14:35:35 -0800</pubDate>
  	<dc:creator>Rabulah</dc:creator>
</item>

    </channel>
</rss>
