Return to Snippet

Revision: 41768
at February 23, 2011 05:09 by pedromagalhaes


Initial Code
$(document).ready(function(){
	$(function(){
	  $("a[href^='http']").attr('target','_blank');
	  $("a[href^='.pdf']").attr('target','_blank');	  
	  $("a[href^='http://app.readspeaker.com']").attr('target','_blank');	  
	}); 
});

Initial URL


Initial Description
If you wish to change attributes in a link you can make use of this snippet.
For example, you can add "name", "id", "class", "target", etc.

Initial Title
Change Attribute Values for Links

Initial Tags


Initial Language
jQuery