I'm trying to make it so when you click on a link in an <iframe>
it will open the link in a new tab - not in the <iframe>
. Please note I do not have control of the content the people are viewing through the <iframe>
.
I'm trying to do this with javascript possibly, like $('a').setAttribute('target','_blank');
but it's not working out for me.
I also have in my HTML document <base target=_blank>
, that is not doing the trick too.
Is this impossible? Or am I just searching in the wrong places?
Thanks in advance!