Documentation and Books

Recent site activity

Web Development‎ > ‎JavaScript‎ > ‎

How to convert a String to URL encoding?

You can do this in the following way:

  function convert() {
alert(escape("It's me!"));
}

Executing this function will result in the following alert message:

  It%27s%20me%21