<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/external</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 05:03:50 GMT</pubDate>
<item>
<title>(JavaScript) dinamiškai pridėti išorinį JavaScript failą - ptomas</title>
<link>http://snipplr.com/view/66185/dinamikai-pridti-iorin-javascript-fail/</link>
<description><![CDATA[ <p>išorinio javascript failo įtraukimas į html</p> ]]></description>
<pubDate>Tue, 17 Jul 2012 19:56:30 GMT</pubDate>
<guid>http://snipplr.com/view/66185/dinamikai-pridti-iorin-javascript-fail/</guid>
</item>
<item>
<title>(JavaScript) Javascript open links in a new window, without _blank - Krummelz</title>
<link>http://snipplr.com/view/63232/javascript-open-links-in-a-new-window-without-blank/</link>
<description><![CDATA[ <p>Usage:
&amp;lt;a href="http://www.whaterver-your-site-is-called.com/" rel="external"&amp;gt;Some other site&amp;lt;/a&amp;gt;</p> ]]></description>
<pubDate>Fri, 10 Feb 2012 17:40:20 GMT</pubDate>
<guid>http://snipplr.com/view/63232/javascript-open-links-in-a-new-window-without-blank/</guid>
</item>
<item>
<title>(JavaScript) Calling external JS or JQuery - ariunbolor</title>
<link>http://snipplr.com/view/57032/calling-external-js-or-jquery/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 22 Jul 2011 16:59:13 GMT</pubDate>
<guid>http://snipplr.com/view/57032/calling-external-js-or-jquery/</guid>
</item>
<item>
<title>(JavaScript) automatically send external links to new window with mootools - birnamdesigns</title>
<link>http://snipplr.com/view/30551/automatically-send-external-links-to-new-window-with-mootools/</link>
<description><![CDATA[ <p>The html attribute 'target="_blank"' for links is no longer valid code as of XHTML Strict 1.0. This code will run using mootools on domready to send all clicks to new windows when going to an external domain.</p> ]]></description>
<pubDate>Tue, 30 Mar 2010 17:48:43 GMT</pubDate>
<guid>http://snipplr.com/view/30551/automatically-send-external-links-to-new-window-with-mootools/</guid>
</item>
<item>
<title>(JavaScript) Open external links in new window without target = _blank using jQuery - relaxasaurus</title>
<link>http://snipplr.com/view/28509/open-external-links-in-new-window-without-target--blank-using-jquery/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 17 Feb 2010 16:12:14 GMT</pubDate>
<guid>http://snipplr.com/view/28509/open-external-links-in-new-window-without-target--blank-using-jquery/</guid>
</item>
<item>
<title>(JavaScript) Google Analytics - External Link Tracking - smoothdzion</title>
<link>http://snipplr.com/view/22489/google-analytics--external-link-tracking/</link>
<description><![CDATA[ <p>In order to track links out Google requires you add this snippet of JavaScript to your anchor(a) tag.  Replace /G1/example.com with whatever you want to use to identify the link.</p> ]]></description>
<pubDate>Wed, 04 Nov 2009 12:21:23 GMT</pubDate>
<guid>http://snipplr.com/view/22489/google-analytics--external-link-tracking/</guid>
</item>
<item>
<title>(JavaScript) XHTML valid external links with mootools - cherrywaves</title>
<link>http://snipplr.com/view/19219/xhtml-valid-external-links-with-mootools/</link>
<description><![CDATA[ <p>W3C no longer include the target attribute of the  tag in HTML 4.0 Strict and XHTML 1.0 Strict document types . To make links open new windows we will have to use Javascript, and with mootools it make this task very easy. Just add this snippet to the bottom of your html document and it will look for all external links on your page and add the target attribute to each of the links.</p> ]]></description>
<pubDate>Thu, 03 Sep 2009 06:57:04 GMT</pubDate>
<guid>http://snipplr.com/view/19219/xhtml-valid-external-links-with-mootools/</guid>
</item>
<item>
<title>(JavaScript) JS External Windows and Poor Man's E-mail Obfuscate (jQuery) - nerdfiles</title>
<link>http://snipplr.com/view/16928/js-external-windows-and-poor-mans-email-obfuscate-jquery/</link>
<description><![CDATA[ <p>Basically, this is my "common.js" document which I use as the base for all my Web sites. So, these functions are just general purpose. So, the question is: Would a spam bot check the rel tag for the actual handle? It won't get the domain from the link on the page. And you can take out the right-to-left condition to make it a left-to-right, non-e-mail address link.

The external link script is for semantic purposes, since "target" has been deprecated.</p> ]]></description>
<pubDate>Mon, 13 Jul 2009 00:58:28 GMT</pubDate>
<guid>http://snipplr.com/view/16928/js-external-windows-and-poor-mans-email-obfuscate-jquery/</guid>
</item>
<item>
<title>(JavaScript) Open Link in an External Window via Javascript - chippper</title>
<link>http://snipplr.com/view/11841/open-link-in-an-external-window-via-javascript/</link>
<description><![CDATA[ <p>Rather than using target="_blank", which is deprecated by the W3C in XHTML, you should use rel="external" for links that you want to pop out in a new window. This is the javascript that makes it happen.</p> ]]></description>
<pubDate>Wed, 04 Feb 2009 11:16:56 GMT</pubDate>
<guid>http://snipplr.com/view/11841/open-link-in-an-external-window-via-javascript/</guid>
</item>
<item>
<title>(JavaScript) jQuery open external link in new window - 1man</title>
<link>http://snipplr.com/view/8733/jquery-open-external-link-in-new-window/</link>
<description><![CDATA[ <p>Two different ways to open an external link (ones that start in http) in a new window. I know this isn't a great thing to do, but some clients _need_ to have it.</p> ]]></description>
<pubDate>Wed, 01 Oct 2008 06:04:07 GMT</pubDate>
<guid>http://snipplr.com/view/8733/jquery-open-external-link-in-new-window/</guid>
</item>
<item>
<title>(JavaScript) programatically loading external js/css files - MMDeveloper</title>
<link>http://snipplr.com/view/8422/programatically-loading-external-jscss-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 16 Sep 2008 08:34:17 GMT</pubDate>
<guid>http://snipplr.com/view/8422/programatically-loading-external-jscss-files/</guid>
</item>
<item>
<title>(JavaScript) Javascript include menu with external file - jessnoonyes</title>
<link>http://snipplr.com/view/8161/javascript-include-menu-with-external-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 03 Sep 2008 11:22:34 GMT</pubDate>
<guid>http://snipplr.com/view/8161/javascript-include-menu-with-external-file/</guid>
</item>
<item>
<title>(JavaScript) Valid External Links - wesbaker</title>
<link>http://snipplr.com/view/7172/valid-external-links/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 08 Jul 2008 10:32:34 GMT</pubDate>
<guid>http://snipplr.com/view/7172/valid-external-links/</guid>
</item>
<item>
<title>(JavaScript) external link - kyokutyo</title>
<link>http://snipplr.com/view/5137/external-link/</link>
<description><![CDATA[ <p>add
  onclick="window.open(this.href); return false;"
to
  a Tag with rel="external"</p> ]]></description>
<pubDate>Wed, 20 Feb 2008 23:39:23 GMT</pubDate>
<guid>http://snipplr.com/view/5137/external-link/</guid>
</item>
<item>
<title>(JavaScript) waitForScript - remysharp</title>
<link>http://snipplr.com/view/4132/waitforscript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 14 Nov 2007 05:09:03 GMT</pubDate>
<guid>http://snipplr.com/view/4132/waitforscript/</guid>
</item>
<item>
<title>(JavaScript) Open New Window Using REL External Instead of Deprecated Target Attribute - jonhenshaw</title>
<link>http://snipplr.com/view/3047/open-new-window-using-rel-external-instead-of-deprecated-target-attribute/</link>
<description><![CDATA[ <p>Excellent Script for opening new windows from links while adhering to modern HTML/XHTML standards. Simple put rel="nofollow" in the anchor and link to the script within the HEAD.

I prefer to remove the text that states the link opens in an external windows. To do that, simply change this part of the last line from this:
("rel","external"," (external website, opens in a new window)")

to this:
("rel","external","")</p> ]]></description>
<pubDate>Tue, 26 Jun 2007 14:52:15 GMT</pubDate>
<guid>http://snipplr.com/view/3047/open-new-window-using-rel-external-instead-of-deprecated-target-attribute/</guid>
</item>
<item>
<title>(JavaScript) relWindow - New window based on 'rel' attr - mountainash</title>
<link>http://snipplr.com/view/2192/relwindow--new-window-based-on-rel-attr/</link>
<description><![CDATA[ <p>Based on the linked SitePoint article but with options to limit the container (eg body copy) and set the target. Use '_blank' for a new window for each link. Also adds a class (based on the rel value) for styling. Call the 'relWindow' on window load.</p> ]]></description>
<pubDate>Tue, 20 Feb 2007 21:45:22 GMT</pubDate>
<guid>http://snipplr.com/view/2192/relwindow--new-window-based-on-rel-attr/</guid>
</item>
<item>
<title>(JavaScript) Opening New Windows With JavaScript, Version 1.2 - jonhenshaw</title>
<link>http://snipplr.com/view/1402/opening-new-windows-with-javascript-version-12/</link>
<description><![CDATA[ <p>A an excellent script for allowing links to open new windows while keeping the code standards compliant.

If you look at the last line of the script, you will notice that the JSTarget.init() function takes three parameters (all optional). This is what makes this script more flexible than the previous versions.</p> ]]></description>
<pubDate>Thu, 12 Oct 2006 19:48:00 GMT</pubDate>
<guid>http://snipplr.com/view/1402/opening-new-windows-with-javascript-version-12/</guid>
</item>
</channel>
</rss>