Return to Snippet

Revision: 32720
at April 9, 2011 03:24 by sb_01


Updated Code
$('a[rel*=external]').click( function() {
	window.open(this.href);
	return false;
});

// Better Solution
// thanks to: emelendez
$('body').delegate('a[rel=external]', 'click', function(){ 
	window.open(this.href);
	return false;
})

Revision: 32719
at April 9, 2011 03:24 by sb_01


Updated Code
$('a[rel*=external]').click( function() {
	window.open(this.href);
	return false;
});

// Better Solution

$('body').delegate('a[rel=external]', 'click', function(){ 
	window.open(this.href);
	return false;
})

Revision: 32718
at October 1, 2010 23:31 by sb_01


Initial Code
$('a[rel*=external]').click( function() {
	window.open(this.href);
	return false;
});

Initial URL

                                

Initial Description

                                

Initial Title
Open Link in new Window

Initial Tags
javascript, jquery

Initial Language
jQuery