title: Getting full URL with jQuery including parameters after question mark?
body: <p>I am trying to use jQuery to get the current full URL of a page. The URL of a page looks like this:</p>
  
  <p><a href="http://myurl.com/ebook?page=43">http://myurl.com/ebook?page=43</a></p>
  
  <p>If I use <code>window.location.pathname</code> it only returns everything before the ? so I would just get </p>
  
  <p><a href="http://myurl.com/ebook">http://myurl.com/ebook</a></p>
  
  <p>How can I get the entire URL?</p>