attaching the link of the article in href

Posted by Aruna on Stack Overflow See other posts from Stack Overflow or by Aruna
Published on 2010-04-08T06:14:56Z Indexed on 2010/04/08 6:23 UTC
Read the original article Hit count: 251

Filed under:

hi ,

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...

© Stack Overflow or respective owner

Related posts about location-href