Return to Snippet

Revision: 10481
at January 1, 2009 04:56 by fruehjahr

Initial Code
<script type="text/javascript">
Event.observe(window, 'load', function() {
        if(link.readAttribute('href') != '' && link.readAttribute('href') != '#'){

Initial URL

Initial Description
There's been a popular trend to use JavaScript to add target="_blank" to anchors with rel="external". So in the name of making everything in my site Prototype based I worked out a script to do just that.

Initial Title
Change Rel External to Target Blank using Prototype

Initial Tags
html, links

Initial Language