Javascript [slah ] / charactor to html code convert

Discussion in 'JavaScript' started by News Updates, Nov 5, 2012.

  1. #1
    hi guys, I need a little help

    I want to convert my url using javascript.

    http://mysite.com/my-post-title
    Code (markup):
    to
    http%3A%2F%2Fsmysite.com%2Fmy-post-title
    Code (markup):
    also I want to assign a function to use the converted code out of javascript.

    is it possible?
     
    Solved! View solution.
    News Updates, Nov 5, 2012 IP
  2. News Updates

    News Updates Member

    Messages:
    490
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    35
    #3
    thanks this is what I need.
     
    Last edited: Nov 5, 2012
    News Updates, Nov 5, 2012 IP