Jump to content

Select onchange -> Change to another subdomain


transparencia

Recommended Posts

Hello guys,

 

I have a select form that changes the website countries. My website is built like this: fr.website.com, de.website.com, etc...

 

When the user changes the country in the form, I would like to send him to one of the subdomains.

 

I have this code:

 

Code:

<select onchange="window.location=+this.value'.website.com'">
<option value="at">Austria</option>
<option value="be">Belgium</option>
etc...

If the user press Austria I want to send him to at.website.com. How can I do that?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.