My Javascript Google-fu is failing me.
June 1, 2006 9:58 AM
Subscribe
How can I replace part of an URL with a variable from a pulldown form?
I can get the form to redirect to a new page pretty easily, but I'd like it to write the current domain, replace a directory, and then append the rest of the current URL.
For example
Replace this:
http://domain.com/english/example.htm
With this:
http://domain.com/espagnol/example.htm
My Javascript skills amount to massaging already existing scripts and I haven't found any explanation to point me to know what to look for. Does anyone know of an online resource that illustrates this to help me out? Thanks!
posted by stevis to computers & internet (2 comments total)
posted by The Radish at 10:37 AM on June 1, 2006