Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js escape url parameter

var myUrl = "http://www.image.com/?username=unknown&password=unknown";
var encodedURL= "http://www.foobar.com/foo?imageurl=" + encodeURIComponent(myUrl);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #escape #url #parameter
ADD COMMENT
Topic
Name
8+1 =