How can I make sure all links <a>have the same "_self" target via jQuery or javascript?
<a>
Put this in <head>:
<head>
<base target="_self">
No JavaScript needed - HTML has a built-in feature!
$('a[href]').attr('target','_self');
Note. This will replace all the tags ANCHORtag targeton the page. RichieHindle's answer would be better if you just want to add them where they are not announced.
ANCHOR
target
$('a').attr('target', '_self');