I have browsed through the questions here and found some helpful but incomplete for what I need. I would like to write a value in a cookie with a checkbox. In my 'intro' page there will be a checkbox that a user can select to automatically forward the user to the main site when the checkbox is selected. How can I do this with JS? I can find the code to set a cookie and read it so that after the first or even x number of times visited will automatically foward to the next page but I would like the user to select it instead of automatically doing it after the first time.