[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

convert %3A to ":" in string

Posted on 2009-04-27
3
Medium Priority
?
403 Views
Last Modified: 2012-05-06
Hi everyone,

I have a string that reads http%3A%2F%2Fwww..mysite.com%2F.

How can I easily convert that to "http://www.mysite.com/" in javascript??

TIA!
0
Comment
Question by:Feivi99
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 200 total points
ID: 24244224
Using unescape
<html>
<body>
 
<script type="text/javascript">
 
document.write( unescape( 'http%3A%2F%2Fwww..mysite.com%2F' ) )
 
</script>
 
</body>
</html>

Open in new window

0
 

Author Closing Comment

by:Feivi99
ID: 31575103
worked great, thanks :-)
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 24245559
You are welcome.

Thanks for the grade & points

Good luck & have a great day.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question