Facebook Share button URL incomplete

atta579

New Member
I want to add a share to facebook link to my website. I want to attach last part of the current URL (any directory after #) to another domain. Here is what I have. \[code\]<div id="sharefacebook"><a href="javascript:window.location=%22http://www.facebook.com/sharer.php?u=%22+'http://www.google.com/'+window.location.hash+%22&t=%22+encodeURIComponent(document.title)" title="Share on Facebook...">ShareWithFacebook</a></div>\[/code\]I can open the share page without problem. But for some reason, the window.location.hash won't be added to the URL string. Anyone help me with that? Thanks in advance.
 
Back
Top