I've got a website with a splash page where users select one of two languages in which to access the page, and have the option of ticking a "remember me" checkbox, which would write a cookie. On subsequent visits to the splash page, the cookie would be read, and the user would be instantly redirected to the appropriate language version of the site.
I'm new to JS, and want to avoid building bad coding habits; what would be a recommended way of coding this?

You simply learn how to create and retrieve cookies for your site. Then put the call on your page where it could be a main page of each language. If the cookies matches the page language, do nothing; otherwise, redirect. If a user change the remember me check (onchange event), you need to update the cookies as well.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.