Skip to content

Instantly share code, notes, and snippets.

@psiborg
Created January 6, 2012 08:23
Show Gist options
  • Select an option

  • Save psiborg/1569671 to your computer and use it in GitHub Desktop.

Select an option

Save psiborg/1569671 to your computer and use it in GitHub Desktop.
JS URI
escape(str)
unescape(str)
encodeURI(str)
decodeURI(str)
encodeURIComponent(str)
decodeURIComponent(str)
var url = "http://finance.yahoo.com/q?s=RIM.TO&ql=0";
var urlArg = encodeURIComponent(url);
window.location = "http://www.rim.com/redirect?url=" + urlArg;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment