Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

encodeURI Method

Returns a string encoded as a valid Uniform Resource Identifier (URI).

function encodeURI(URIString : String) : String


Required. A string representing an encoded URI.

The encodeURI method returns an encoded URI. If you pass the result to decodeURI, the original string is returned. The encodeURI method does not encode the following characters: ":", "/", ";", and "?". Use encodeURIComponent to encode these characters.

Community Additions

© 2015 Microsoft