Just to clarify ... I did a site once that had many internal links (to other pages within the same site), such as
Originally Posted by chol7024
and lots of external links (to other sites) like
<a href="/contact/">contact us</a>
Suddenly, the client demanded that all external links open in a new window (so that people wouldn't leave his site when they clicked an external link).
<a href="http://someothersite.com">bye bye</a>
Instead of going through the whole site and adding hundreds of target="_blank" attributes to all those external links, I just added this simple code to the <head> of each page (which I did just once, because most of the <head> content was fed to each page via a single include file):
That's a much simpler solution, even though it means the user will have do download the entire jQuery library! (In the case of the site, that was already being used for other purposes anyway, so I've just added that first line above to show how you could do this if you weren't already using jQuery on the site.)