Answers for "javascript escape & url parameter"

1

js escape url parameter

var myUrl = "http://www.image.com/?username=unknown&password=unknown";
var encodedURL= "http://www.foobar.com/foo?imageurl=" + encodeURIComponent(myUrl);
Posted by: Guest on October-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language