Posted By

Mosaic on 04/22/10


Tagged

link facebook share


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

keidash
jwv
cchitsiang
czehner
luman


Share on Facebook


 / Published in: JavaScript
 

URL: http://www.bloganol.com/2008/08/add-share-on-facebook-link-and-buttons-on-your-blog.html

  1. <script>
  2. function fbs_click(u,t) {
  3. window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;
  4. }
  5. </script>
  6.  
  7.  
  8. <a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click('http://www.google.com/', 'Google')" target="_blank">Share on Facebook</a>

Report this snippet  

You need to login to post a comment.