/ Published in: jQuery
                    
                                        
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.
                For example, you can add "name", "id", "class", "target", etc.
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
$(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');
});
});
Comments
 Subscribe to comments
                    Subscribe to comments
                
                