Home » HTML » HTML URL Encode » Question
  1. Which function is used in JavaScript for URL encoding?
    1. Server.URLEncode()
    2. UREncoding
    3. encodeURI()
    4. rawurlencode()
    5. None of these
Correct Option: C

There are some built in functions in JavaScript, ASP and PHP for URL encoding. JavaScript use encodeURI() function. ASP uses Server.URLEncode() function, rawurlencode() function is used by PHP. Space is encoded as %20 by JavaScript function.



Your comments will be displayed only after manual approval.