That's not directly the fault of JS. Rather, it's people not implementing links properly. If a link uses the <a> tag, then a browser can do all sorts of things like colour it purple when it has been visited already, or allow middle-clicking to open in a new tab, or allow right-clicking and...