Javascript Reference
Categories: document

javascript document URLUnencoded

@March 15, 2008, 1:22 a.m.
URLUnencoded Firefox/Netscape/NN n/a IE 5.5(Win) Chrome/Safari/DOM n/a

Read-only

Returns the URL of the current document, but with any URL-encoded characters returned to their plain-language version (e.g., %20 is converted to a space character). The returned value is the same as if applying the JavaScript decodeURI( ) function to document.URL.

 
Example
 
var straightPath = document.URLUnencoded;
 
Value

Complete or relative URL as a string.

 
Default

The current document's URL.


Powered by Linode.