This documentation is archived and is not being maintained.

encodeURI Method

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

function encodeURI(URIString : String) : String

Arguments

URIString
Required. A string representing an encoded URI.

Remarks

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.

Requirements

Version 5.5

See Also

decodeURI Method | decodeURIComponent Method

Applies To: Global Object

Show: