/ Published in: jQuery
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
//Open external links in a new window/tab
$("a[href^='http://']").attr("target","_blank");
Comments
 Subscribe to comments
                    Subscribe to comments
                
                