/ Published in: jQuery
                    
                                        
Add rel="external" on link you would like to open in a new window
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
jQuery(document).ready(function () {
jQuery("a[rel='external']").each( function(i) {
jQuery(this).attr("target","_blank");
});
});
Comments
 Subscribe to comments
                    Subscribe to comments
                
                