Notes Homepage Notes How to make external links to open in a new window with JavaScript $('a[href^="http:"],a[href^="https:"],a[rel^="external"]').attr('target','_blank');