Hi guys
I'm looking for a script that will open my affiliate link in a different tab while in my current tab it will redirect the user to another offer (which he will see after he closes the new tab that was opened for him).
Lets say my link looks like this :
<a href="http://www.affiliate-link.com" class="submit button" > click here </a>
What code do I need to add to make it the way I want it to be?
Thanks!
Just add target = "blank" and the link will be opened in a new tab. Just don't know how to let the original tab show another offer, after the new tab is opened.
I guess you mean this script:
<script language="javascript" type="text/javascript"> if (parent.window.opener){ parent.window.opener.location.replace('http://google.com'); } </script>
Just:
<a href="http://www.affiliate-link.com" target="_blank" class="submit button" > click here </a>
Here is the solution:
<a href="http://www.affiliate-link-for-new-tab.com/" target="_blank" onclick="setTimeout(function() { location.href = 'http://www.affiliate-link-for-current-tab.com/'; }, 100)">Click Here</a>
Do these links not get blocked by chrome?
It's working in Chrome too
Hi since you are using Prosper202 you can just use the leave behind feature without writing any scripts.
It will do exactly what you need.
Thanks Nana!