how can I manipulate the URL

wxdqz

New Member
I am working on a web site that provides the content on English and Spanish. I will like to have a button on each page where the user can switch between languages.

So if the English link looks like
<!-- w --><a class="postlink" href="http://www.someserver.com/foldera/folderb/pagea.htm">www.someserver.com/foldera/folderb/pagea.htm</a><!-- w -->

I will like to modify the link so it looks like
<!-- w --><a class="postlink" href="http://www.someserver.com/foldera/espanol/folderb/pagea.htm">www.someserver.com/foldera/espanol/folderb/pagea.htm</a><!-- w -->

Any ideas on how I can do this with client side javascript?

Thanks.
 
Back
Top