Results 1 to 2 of 2

Thread: Substitution of " " with "%20" in JS

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question Substitution of " " with "%20" in JS

    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?
    Code:
    function subs(){
    var strName= "This is the test";
    }
    And my result should be
    "This%20ís%20the%20test"

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width