title: How can we show facebook share button after page loads?
body: <p>I am trying to show Facebook share button after the web page is loaded using <code>window.onload</code> function. The code using iframes are working fine for Facebook like button but when I put code for fshare button, its just printed and nothing else happens the code is as follows :</p>
  
  <pre><code>function ImagesocialButtons() {
  if (document.getElementById("social_wrap")) {
      var socialCode = "";    
        socialCode += "&lt;div class=\"social_btn\"&gt;";   
        socialCode += "&lt;iframe src=\"http://www.facebook.com/plugins/like.php?href="
  + escape(document.URL) + "&amp;amp;layout=button_count&amp;amp;show_faces=false&amp;amp;width=90&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:90px; height:21px;\" allowTransparency=\"true\"&gt;&lt;/iframe&gt;"; 
        socialCode += "&lt;/div&gt;";   
        socialCode += "&lt;div class=\"social_btn\"&gt;";       
        socialCode += "&lt;a name=\"fb_share\" type=\"button_count\" href=\"http://www.facebook.com/sharer.php\"&gt;Share&lt;/a&gt;&lt;script src=\"http://static.ak.fbcdn.net/connect.php/js/FB.Share\" type=\"text/javascript\"&gt;&lt;/script&gt;";        
        socialCode += "&lt;/div&gt;";
      document.getElementById("social_wrap").innerHTML = socialCode;  } }
  
  window.onload = ImagesocialButtons;
  </code></pre>