I am about to put a website online, and I want to make it so that whenever you click on a link in it, besides of opening that link you open a adversitement tab, how do I do that? Also where can I get a nice ad provider besides in GoogleAdsense?
botnet
botnet
botnet
botnet
botnet
netbot
botnet
botnet
botnet
>>58721127
What?
botnet
botnet
Bonnet
botnet
botnet
botnet
botnet
botnet
botnet
botnet
botnet
botnet
botnet
botnet
netbot
>>58721230
Okay, stealing info from the pepople that visit my website is probably the fastest way to get money, but it is not what I want to do, at least not for now. Just ads.
You want it to open both the link AND an ad?
Simple JS:
var popup_a = document.createElement("a");
popup_a.setAttribute("href", "linktoad.com");
popup_a.setAttribute("target", "_blank);
popup_a.click();
window.location = "actualLink.com"
Where "actualLink.com" is the link you want it to go to, and "linktoad.com" is the advertiser you want to link to.
Add this to some kind of event handler
>>58721058
nope
>>58721058
Wouldn't know, I don't see it.
botent
>>58721058
fuck off
botnet
>>58721289
You're going to need to give him something he can just copy and paste without modification, so go ahead and fill in the event handler part as well.
botnet
>>58721334
in the a tag:<a onclick="open_popup(realLink)">Click me!</a>
>>58721353
I wasn't being serious, I was making fun of him for being too lazy to figure this out himself, but thanks on his behalf I guess.
>>58721133
not bet
>>58721353
Thanks
Tom Brady
popup blockers & adblockers aren't going to allow you stealing money from people
>>58721289
I think you have to append it to the body prior to doing the click.
In other words:var popup_a = document.createElement("a");
popup_a.setAttribute("href", "linktoad.com");
popup_a.setAttribute("target", "_blank");
document.body.appendChild(popup_a);
popup_a.click();
window.location = "actualLink.com";
botnet
>>58721058
That sounds like a great way to get people to use a different site instead.
botnet
botnet
botnet