title: Get path including GET variables using javascript
body: <p>I need to get the whole path of page (excluding the domain) so I can show it in an iframe.</p>
  
  <p>I currently use <code>location.pathname</code> to get the path, but the problem is that they may appear <code>GET</code> variables in the URL.</p>
  
  <p>So for a page like <code>article.php?id=23</code> I get only <code>article.php</code> using <code>location.pathname</code>,  thus the page displayed in the <code>iframe</code> is simply a 404 page.</p>
  
  <p>Is there any function to get the path including GET variables?</p>