Jump to content

Language selector and save as default


blueisland

Recommended Posts

I have a very simple dropdown box for two language selection (EN/FR) which I got from W3Schools. It works fine but what I want is that when the language is selected it becomes the default choice for visitors unless they choose otherwise. I assume this must involve a cookie but how do I code for this? I am using straight html, no CMS. Is it possible?

Thanks for any help

<div class="dropdown">
  <button class="dropbtn">EN</button>
  <div class="dropdown-content">
    <a href="https://websitename/fr/page.html">Français</a>
      </div></div>

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...