JavaScript Global method: encodeURIComponent()
[this page | pdf | back links]
The JavaScript
Global
encodeURIComponent() method encodes
a string representing a URI by replacing certain characters by one, two, three
or (rarely) four escape sequences representing the UTF-8 encoding of the
character.
It
has the following syntax with the following parameters:
encodeURIComponent(URI)
|
Parameter
|
Required / Optional
|
Description
|
|
URI
|
Required
|
String representing URI to be
encoded
|
More detail on URI
encoding is given here.
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)