K
K
Konstantin Khairov2016-09-30 14:33:50
Google
Konstantin Khairov, 2016-09-30 14:33:50

How to open another tab when clicking on adsense?

Hello everyone, in general, I ran into such a problem. On the site, someone makes a large number of clicks on adsense on purpose, because of this he has already received a ban for 30 days. But now the ban passed and decided to do so. If someone clicked on the ad, the advertiser's website opens, as well as another tab with the link I specified, there is a cookie entry and no more ads are shown during the day. But here's the problem. Previously, I did this to the div tag and attributed the onclick="link I specified" attribute, but now it doesn't work, when you click on adsense, the advertiser's site opens in a new tab and the link I specified does not open. How to implement this using javascript? I just don't know him and I'm just going to study. The main problem is that I can't write anything in the google iframe itself, it loads itself when you insert their advertising code. How to open a new tab with the link I specified when clicking on an adsense ad. Thank you very much in advance .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sashabeep, 2016-09-30
@sashabeep

...onclick="window:open(url)"

I
isrofilov, 2016-09-30
@isrofilov

If someone does it on purpose, probably cookies will not help here. So so easy to delete plus incognito mode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question