Revision: 41927
Updated Code
at July 2, 2011 17:07 by Alwaison
Updated Code
/** * Convert the links with rel="external" * * v. 0.1 Updated (07/02/11) * - Changed de CSS selector adding the posibility to external wasn't the only string in rel * attribute. * - Changed de string from "extern" to "external", that's looks more adequate. * */ function initRelLinks(){ jQuery('a[rel*="external"]').click(function(){ jQuery(this).attr('target', '_blank'); }); }
Revision: 41926
Updated Code
at July 2, 2011 17:07 by Alwaison
Updated Code
/** * Convert the links with rel="external" * Convierte los enlaces con rel="external" para que se abran en una nueva pesta�±a. * * v. 0.1 Updated (07/02/11) * - Changed de CSS selector adding the posibility to external wasn't the only string in rel * attribute. * - Changed de string from "extern" to "external", that's looks more adequate. * */ function initRelLinks(){ jQuery('a[rel*="external"]').click(function(){ jQuery(this).attr('target', '_blank'); }); }
Revision: 41925
Updated Code
at July 2, 2011 16:59 by Alwaison
Updated Code
/** * Convert the links with rel="external" * Convierte los enlaces con rel="external" para que se abran en una nueva pestaña. * * v. 0.1 Updated (07/02/11) * - Changed de CSS selector adding the posibility to external wasn't the only string in rel * attribute. * - Changed de string from "extern" to "external", that's looks more addecuate. * */ function initRelLinks(){ jQuery('a[rel*="external"]').click(function(){ jQuery(this).attr('target', '_blank'); }); }
Revision: 41924
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 25, 2011 00:01 by Alwaison
Initial Code
/** * Convert the links with rel="extern" * Convierte los enlaces con rel="extern" para que se abran en una nueva pestaña. */ function initRelLinks(){ jQuery('a[rel="extern"]').click(function(){ jQuery(this).attr('target', '_blank'); }); }
Initial URL
Initial Description
Initial Title
Blank target links with jQuery
Initial Tags
link, jquery
Initial Language
jQuery