Preventing AdSense links from opening in new tab

4

Is there any way to prevent my site from opening links in a new tab and having them open in it? It's the opposite? Thank you.

Edit: I use Google Adsense. Some ads open on the same tab, others open a new tab. I wanted to block them from opening in new tab.

    
asked by anonymous 26.05.2015 / 02:21

1 answer

1

Yes, to always open on the same tab, use the _self attribute, and to always open another tab, the _blank attribute.

For example:

<a href="http://www.seusite.com" target="_blank">Abre em outra página</a>

<a href="http://www.seusite.com" target="_self">Abre na mesma página</a>

Edit: Take a look on this page , especially in the comments, where you even have the link to a possible solution . But I can already see that modifying google ad sense behavior can hurt the terms of service, and you can even get kicked out of the system.     

26.05.2015 / 02:29