Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

URLUnencoded property

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


HRESULT value = object.get_URLUnencoded(* p);

Property values

Type: BSTR

the URL of the document.


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


The following illustrates the difference between the value returned by the IHTMLDocument4::URLUnencoded property and the value returned by the IHTMLDocument2::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;



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.