URLUnencoded Property | Internet Development Index |
Retrieves the URL for the document, stripped of any character encoding.
Syntax
[ sUrl = ] document.URLUnencoded
Possible Values
sUrl String that receives the URL of the document. The property is read-only. The property has no default value.
Remarks
For more information about URL character encoding issues, refer to RFC-1738 on Uniform Resource Locators (URL) .
Example
The following illustrates the difference between the value returned by the URLUnencoded property versus the value returned by the URL property of the document.
<SCRIPT> function window.onload() { oURL.innerText = document.URL; oURL2.innerText = document.URLUnencoded; } </SCRIPT>
Standards Information
There is no public standard that applies to this property.
Applies To
document