I have the following code in an HTML file along with the jquery file. When I run this HTML file and then test it to see if every clickable link is forced to be opened in the same tab, it doesn't make any difference and continues to open links in new tabs. I'm not especially opening anything in a new tab by holding down Ctrl.
I'm trying it on links by default and a simply mouse click still opens it in a new tab.
<html>
<head>
<style type="text/css">
body {width:780; height:580;}
</style>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js">
</script>
<script>
$(document).ready(function(){
$('a[target="_blank"]').removeAttr('target');
});
</script>
</head>
<body>
<iframe src= "https://www.bing.com/" width="100%" height="100%" frameborder="0" id="MyFrame">
</iframe>
</body>
</html>