To encode a URL in Javascript you can use the following snippet.
Also take a look at How to decode a URL in Javascript.
Sample Javascript
escape("http://codesnippets.fesslersoft.de/");
To encode a URL in Javascript you can use the following snippet.
Also take a look at How to decode a URL in Javascript.
escape("http://codesnippets.fesslersoft.de/");