all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
1 out of 3 rated this helpful - Rate this topic

URLUnencoded property

Gets the URL for the document, stripped of any character encoding.

Syntax

JavaScript

p = object.URLUnencoded

Property values

Type: String

the URL of the document.

Remarks

For more information about URL character encoding issues, refer to RFC1738: Uniform Resource Locators (URL).

Examples

The following illustrates the difference between the value returned by the URLUnencoded property and the value returned by the URL property of the document.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/URLUnencoded.htm


<script type="text/javascript">
   function window.onload()
   {
      oURL.innerText = document.URL;
      oURL2.innerText = document.URLUnencoded;
   }			
</script>


See also

document

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.