hpl
May 6th, 2002, 07:29 AM
I want to substitute a variable including " " with "%20" so I can use it in a link. How do I do that with a JS-function?
function subs(){
var strName= "This is the test";
}
And my result should be
"This%20ís%20the%20test"
function subs(){
var strName= "This is the test";
}
And my result should be
"This%20ís%20the%20test"