Question

Hi I'd like to share a link different to a web page I'm sharing from. It goes to the same page but its a tiny url link. The below code share the page url to Facebook and Twitter, but how do I share a custom link?

<a href="http://twitter.com/share?text=copy goes in here&url=http://PAGE_URL" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,height=600,width=600');return false;"><img src="images/transbg.png" id="twit_sprite" width="1" height="1" /></a>


<a href="http://www.facebook.com/sharer.php?u=http://PAGE_URL&t=copy goes in here" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,height=600,width=600');return false;"><img src="images/transbg.png" id="fb_sprite" width="1" height="1" /></a>
Was it helpful?

Solution

Ah got it just add it into the PAGE_URL attribute

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top