Removing %20's

B

B3ndy

Hi,

Sorry if this is a really basic question but I am a complete novice with
js...

Basically I am passing a set of parameters between pages, this is
working great:

Eg: <a href="page.asp?desc=some%20text%20for%20the%20next%20page"

I am pulling this is nicely into the next page with:

document.write(qsParm['desc']);

The problem is its also displaying the %20's which is really annoying,
any thoughts on how I can get rid of them?

Cheers!

Ben
 
J

Joakim Braun

"B3ndy" <[email protected]> skrev i meddelandet
Eg: <a href="page.asp?desc=some%20text%20for%20the%20next%20page"

I am pulling this is nicely into the next page with:

document.write(qsParm['desc']);

The problem is its also displaying the %20's which is really annoying,
any thoughts on how I can get rid of them?

Cheers!

Ben

unescape(inString).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top