It must have been 15 years since I set a cookie value with javascript …
document.cookie = 'key=value'; //got that ...
How do I append another value with the same key? I want to create a list of values (page=1,34,48,59…) that I can then read and loop over. Or is there a better way?
Specify them all once eg:
where
'key=' + valuewill now be:Or alternatively, read your data from cookie first and add new data: