Open External Links in a new Window via jQuery

$(document).ready(function(){
	$('#content a[href^="http:"], #content a[href^="https:"]').click( function() {
		window.open( $(this).attr('href') );
		return false;
	});
});

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*