I have a tool that I wrote that takes Word documents (articles) from users, puts them in our website template, then uploads them to our testing web server.
When they are copy and pasting their articles from Word, they would like all links to open in a new window.
Is there a way to accomplish this? I can add a function to the website template from which the articles are being created from.
edit: Your suggestions are great, however, one thing I overlooked was that adding a target blank attribute to ALL a tags will make clicks go to a new window. Here is one of my pages:
Could I limit this to a div?
jQuery
Vanilla JS (in case this is the only JS on your page, so you don’t have to load jQuery)