i am having the link like
<a href="http://twitter.com/home/?status='.$markme_ddesc.'" onclick="OpenPopup(this.href); return false">Click Here to See Popup</a>
for bookmarking the article clicked to twitter .. The above one just add the articles message to twitter.. But i am trying to add my article link also to twitter,..
so i am using the location.href but its not working tat is its not showing me the articles site name..
THe below is the one i tried..
<a href="http://twitter.com/home/?status=\'+encodeURIComponent(location.href)+\'-'.$markme_ddesc.'" onclick="OpenPopup(this.href); return false">Click Here to See Popup</a>
Thanks i advance.. Help me to get out of this…
It seems that you’re using PHP, so you could use
where
curPageURLis a custom function to get the full URL. (Or use$_SERVER['REQUEST_URI']if the domain is not needed.)But if you really need to attach the URL from client side, you need to use Javascript.
Of course this will fail if the client doesn’t enable Javascript.