title: How to open only external links in a new browser window via JavaScript?
body: <p>I know this is a common requirement and there are lots of answers out in the wild. I would really appreciate if someone can provide a correct script which opens only external links from an HTML file in a new window.</p>