How to retrieve the whole URL with parameters?
<p>I need to retrieve the whole URL with the parameters as a string. For example, I need to retrieve the following URL:</p>

<pre><code>http://www.keytometals.com/page.aspx?ID=CheckArticle&amp;site=kts&amp;LN=EN&amp;NM=349
</code></pre>

<p>I've tried to use:</p>

<pre><code>document.location.href,
document.URL,
window.location.href
</code></pre>

<p>but it retrieves just a part of URL: </p>

<pre><code>http://www.keytometals.com/page.aspx
</code></pre>

<p>How to get the string containing the current URL as well as its parameters?</p>

<p>One update: I've used the </p>

<pre><code>window.content.document.location.href
</code></pre>

<p>and I've got the following URL:</p>

<pre><code>http://www.keytometals.com/page.aspx?ID=CheckArticle
</code></pre>

<p>Unfortunately, it is still the part of URL. Can somebody help me how to get the whole URL as a string?</p>

<p>Thanks!</p>
