Skip to main content
added 24 characters in body
Source Link
Sergi Ramón
  • 1.8k
  • 1
  • 15
  • 14

If i understand your question, you need to use escapeencodeURIComponent() like this:

window.location = 'morefive.php?document=' + path + '&url=' + escapeencodeURIComponent(link);

If i understand your question, you need to use escape() like this:

window.location = 'morefive.php?document=' + path + '&url=' + escape(link);

If i understand your question, you need to use encodeURIComponent() like this:

window.location = 'morefive.php?document=' + path + '&url=' + encodeURIComponent(link);
Source Link
Sergi Ramón
  • 1.8k
  • 1
  • 15
  • 14

If i understand your question, you need to use escape() like this:

window.location = 'morefive.php?document=' + path + '&url=' + escape(link);