I need to retrieve the whole URL with the parameters as a string. For example, I need to retrieve the following URL:
http://www.keytometals.com/page.aspx?ID=CheckArticle&site=kts&LN=EN&NM=349
I've tried to use:
document.location.href,
document.URL,
window.location.href
but it retrieves just a part of URL:
http://www.keytometals.com/page.aspx
How to get the string containing the current URL as well as its parameters?
One update: I've used the
window.content.document.location.href
and I've got the following URL:
http://www.keytometals.com/page.aspx?ID=CheckArticle
Unfortunately, it is still the part of URL. Can somebody help me how to get the whole URL as a string?
Thanks!