Hey everyone,
I'm not sure if this has ever been discovered before, but it may turn out to be an invaluable link trick. I've been messing around with links, and all of a sudden thought of this.
If the user hovers over the link, it will say google.com, when the user clicks the link it will send him/her to yahoo.com
So, for use in the affiliate world, setup the link to point to the advertiser's root domain, and then set the onClick event to change it to your affiliate network's url.
There are different ways to implement this, you could also do it this way:
Yet another way to do it, you could even hide code in a external javascript js file and dynamically add the onClick events.. sneaky sneaky.
Hope this is valuable info for you all.
Tob
I'm not sure if this has ever been discovered before, but it may turn out to be an invaluable link trick. I've been messing around with links, and all of a sudden thought of this.
If the user hovers over the link, it will say google.com, when the user clicks the link it will send him/her to yahoo.com
Code:
<html>
<body>
<a href="http://www.google.com" onClick="javascript:this.href = 'http://www.yahoo.com';">test link to google</a>
</body>
</html>
So, for use in the affiliate world, setup the link to point to the advertiser's root domain, and then set the onClick event to change it to your affiliate network's url.
There are different ways to implement this, you could also do it this way:
Code:
<html>
<body>
<script>
function changeLink(){
document.getElementById('link').href = "http://www.yahoo.com";
}
</script>
<a href="http://www.google.com" id="link" onClick="javascript:changeLink();">test link to google</a>
</body>
</html>
Yet another way to do it, you could even hide code in a external javascript js file and dynamically add the onClick events.. sneaky sneaky.
Hope this is valuable info for you all.
Tob