title: Using current url in a javascript function
body: <p>I have this js function </p>
  
  <pre><code>function twitterShare(){
      window.open( 'http://twitter.com/intent/tweet?text='+$(".section-title h1").text() +'         
      '+window.location, "twitterWindow",
      "height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0") 
      return false;
  }
  </code></pre>
  
  <p>When the twitter window opens it grabs the .section-title h1 class, but I need it to say something like this,</p>
  
  <p>"Check this out here: <a href="http://currentwebsiteurl.com" rel="nofollow">http://currentwebsiteurl.com</a>"</p>
  
  <p>I need a text string then grab the url of the page. </p>
  
  <p>Any help would be greatly appreciated.</p>