Return to Snippet

Revision: 22806
at January 22, 2010 16:34 by metoikos


Initial Code
//	Open external links in new windows using jquery
	$('a[href^="http://"]').filter(function() {
        return this.hostname && this.hostname !== location.hostname;
    }).attr('target', '_blank');

Initial URL

                                

Initial Description

                                

Initial Title
jquery external link new window

Initial Tags
link, jquery

Initial Language
JavaScript