Jump to content

changing page


Nic727

Recommended Posts

Hi,

 

On my website, I have _f.html for french and _e.html for english.

 

 

So I put a button and I would like that if the URL contain _f.html, it change it for _e.html.

 

I need to know what I should put in my if () and after.

 

Now I just put that if (){document.location="../anglais/"+the URL without _f.html+"_e.html"}

 

Thank you to help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...