title: How to get the current page URL using Javascript and using it in a <a href="[the_URL]">
body: <p>I have a website that I want to insert in it some social buttons so users can share it on twitter and facebook. 
  I want to get the page URL and insert it in in the share buttons. </p>
  
  <p>How do I get the current page URL and use it in a <code>&lt;a href=""&gt;</code> tag or inside other parts on my HTML code? </p>
  
  <p>I know about <code>document.URL</code> on javascript. I just don't know how to apply it on an  tag.</p>